1

I'm using the Gravity Forms + Custom Post Type plugin plus ACF to collect information and automatically generate a post from it. The user is automatically shown the newly generated post via a redirect confirmation.

The form has a list type in GF that maps to a repeater field in ACF. I'm using a function (gfToAcfListToRepeater) that I found on gist to unserialize the values in the list field and assign them to the repeater field which is working great.

The problem is that the the values in the repeater field are not being displayed initially on the newly generated post even though they are in the correct fields on the Edit page (in Admin). If I manually update the post (in Admin) and refresh the page (in the browser), the values display correctly.

The function runs on gform_after_submission and I'm wondering if the post is created before the values are inserted into the repeater field. How can I either program saving the post automatically or is there a better way to accomplish this?

Thanks!!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.