Home › Forums › ACF PRO › Duplicated Fields in Page Editor › Reply To: Duplicated Fields in Page Editor
Hi @mattbeck
Awesome, that explains the issue.
You will need to change one of the repeater’s keys, and make sure that any sub fields which have a parent value also update the key to match (may not be necessary in the output .json)
Unfortunately, the get_field()
wont be able to find the field settings for the repeater field’s value, and won’t return a nice array of data. There are 2 solutions for this:
1. Edit all posts and re-save them. This will update the field reference for each value
2. Edit the DB wp_postmeta
and find/replace any occurrence of the field_key (found in meta_value column). This will also damage the other repeater field, so perhaps don’t do this method 🙂
Hope that helps.
Thanks
E
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.