Home › Forums › Add-ons › Gallery Field › Why do I need a "duplicate" field in the DB? › Reply To: Why do I need a "duplicate" field in the DB?
For others that may be looking for this information, since I know it’s a very old topic. The second row that you’re asking about is required so that ACF knows with to return. As you can see, the first row contains a serialized array. Without the second value ACF will return an array of attachment IDs, the second row tells acf that it’s a gallery field and to return an image arrays for each of those IDs.
All ACF fields are the same. The only fields that will work properly without the second entry in the database are fields that store simple text values.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.