Bug #25433
closedGravity forms not populating featured Image in post
0%
Description
Hi All,
I am working on this site with the dept admin: https://epibios.commons.gc.cuny.edu
She set up gravity forms to populate posts for student successes etc. Here is the form: https://epibios.commons.gc.cuny.edu/form-test/
The form seems to be correctly set up in the back end: https://epibios.commons.gc.cuny.edu/wp-admin/admin.php?id=1&page=gf_edit_forms
I tested the form and the issue is that when the user adds an image to be used as the featured image in the post, the image is lost in translation between the form entry and the post.
Form entry "Laurie ft image test" with headline "This is a test of ft image": https://epibios.commons.gc.cuny.edu/wp-admin/admin.php?page=gf_entries&view=entry&id=1&lid=11&order=ASC&filter=&paged=1&pos=1&field_id=&operator=
You can see in the post that there is no featured image set: https://epibios.commons.gc.cuny.edu/wp-admin/post.php?action=edit&post=2303
and there is a link to the image in the post content, but the image has not been added to the media gallery.
I know gravity forms is usually wonky and causes headaches like this (I advised against using it this way...) but it seems like there may be a bug in the plugin/theme connection that might be easily resolved here to allow the ft/image to be moved from form entry submission to the ft. image on post?
Would you look into this?
Thank you!
Updated by Boone Gorges 26 days ago
- Status changed from New to Reporter Feedback
I've had a look and I have an initial idea of what's going on. This site appears to be using the Gravity Forms Advanced Post Creation Add-On - see https://epibios.commons.gc.cuny.edu/wp-admin/plugins.php. The APC add-on intentionally suppresses GF's default handling of Featured Images when creating posts, and APC's override process doesn't respect GF's 'Set as Featured Image' checkbox. APC should, on the other hand, support the Featured Image mapping feature for the single-file File Upload field. So my recommendation for testing is to replace the 'Image for post...' field from https://epibios.commons.gc.cuny.edu/wp-admin/admin.php?id=1&page=gf_edit_forms with a 'File Upload', and then at Form > Settings > Post Creation > (edit field) > Featured Image, select the new field. I've scaffolded this for you, by creating a File Upload field with the title 'Test Image' and then toggling the proper setting in the Post Creation settings https://epibios.commons.gc.cuny.edu/wp-admin/admin.php?fid=1&id=1&page=gf_edit_forms&subview=gravityformsadvancedpostcreation&view=settings Could you play with this and see if it gives you a path to fixing this?
Updated by Laurie Hurson 21 days ago
Hi Boone
thanks so much for looking into this. yes it seems that the single file upload in the APC worked to add image to media library and set as featured image in the post. I tested and I asked the admin of the site to take a look too. I'm pretty certain this will resolve their problem but will report back if not
Thanks again!
Updated by Boone Gorges 21 days ago
Awesome, glad to hear it's working, preliminarily at least.
Updated by Boone Gorges 8 days ago
- Category name set to WordPress Plugins
- Status changed from Reporter Feedback to Resolved
Tentatively closing this ticket. Please let me know if the user has problems with the proposed path forward. Thanks!