Home Forums Add-ons Gallery Field ACF Gallery Serialized Array


ACF Gallery Serialized Array

  • I’m having difficulty creating a Gravity Forms post creation form which will correctly write the Gallery uploads to the DB.

    Currently, the form uploads the images but creates a standard array of URLs in the DB entry. This does not work with my output code.

    However, if I upload the images directly via the admin and ACF Gallery field, it creates a serialized array of attachments IDs in the DB. This does output correctly.

    How can I get my form to create the serialized array of IDs instead of the URL array?


  • To do this you would need use a field that is not attached to ACF in GF. The you would need to use the a gform_after_create_post action to get the values submitted by GF and then use update_field() to insert the value into the gallery field.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.