Everything in the topic title :). A little more detail though :
I have a custom post type, called Estimate.
A set of ACF custom fields has been added to this custom post type.
I use the Advanced Post Creation Add-on to create a new Estimate thanks with GF. So far, so good ! Post is created, with valid title & content.
Then I tried to map my GF fields to the existing ACF custom fields (in the Post Creation section), but none of the ACF fields is mentionned in the Select a Custom Field Name drop down menu…
So I tried Add New Custom Field Name, carefully typed in every ACF field name in front of the corresponding GF value, but the ACF fields remain empty when a new post is created.
Am I missing something obvious, does someone have an idea ?
Any help would be apreciated
After a couple of extra tests, interesting thing :
I tried to display the vanilla Wordpress custom fields, deactivated by ACF, and thanks to this link.
And surprise, these custom fields are properly populated by the data coming from GF and Advanced Post Creation Add-on !
So the problem is, how do I get GF to map ACF fields instead of the “classic” ones ?
If you have the custom field names correct, Gravity Forms can store the data there, no matter who created the key or registered the post type.
Try creating an Estimate post in the normal manner, using those custom fields, to store some data there. Once they are used, they’ll show up in the drop down in the Post Creation feed.
It’s usually just that the key name does not match exactly, when typing it in.
Also, depending on the complexity of the ACF field (maybe dates, repeaters and such), they may be stored differently in the database than the way in which Gravity Forms is providing the data. I’ve only just begun using the Advanced Post Creation add-on—look forward to doing so more. Prior to its availability, I had put together this script for sending certain GF fields to ACF fields.
Good point @uamv. The data you collect in the form and the ACF field you are using the store the data need to agree on the same data format.
Thank you guys for these replies.
The ACF fields used in this case are pretty straight-forward : text, check-boxes…
Joshua, I’ll try to dive into your script (a bit advanced for my level ^^), but for now, I think I’ll stick with the classic custom fields & GF.
Thanks again, it’s my first post on this forum and since I love GF, I’ll probably be back soon