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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.