Home Forums ACF PRO Best way of merging fields?


Best way of merging fields?

  • Hi

    I have 3 fields that output like this


    How can i merge them into 1 large array such as this


    Thanks in advance

  • I’m not sure how you are getting these values, but you cannot merge them as strings.

    You need to unserialize each array, merge the arrays and then serialize the result.

  • How do i make an array in acf and then merge and serialize?

  • I have no idea, I don’t even know how you’re getting that value to save. Usually when a value like that is retrieved from the db it is automatically unserialized into an array.

  • The values are from checkbox fields

    There are 3 different checkboxes that have various options to choose. It is this data that i would like to merge

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

You must be logged in to reply to this topic.