Support

Account

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