Support

Account

Home Forums General Issues Merged 3 field groups, all data fine, except repeater Reply To: Merged 3 field groups, all data fine, except repeater

  • Not sure if you still need help with this but it may help anyone with the same issue.

    The problem probably has something to do with the field_key values of the field.

    On the back end this field_key doesn’t matter much. You can, for example, create a custom field using the same field name as some other plugin, or that has been entered into the standard WP custom field editor and ACF will get any existing value.

    The front end works a bit differently when it comes to this in a lot of ways. For example, if you try to get a “repeater” field using get_field() that does not have the correct field_key set it in the DB the ACF will return a number that represents the number of rows because it does not know that the field is a repeater without that key. For more information you can see the field_key vs field_name section of this page http://www.advancedcustomfields.com/resources/get_field_object/

    You could correct this without editing and saving every post if you did a search and replace in the database to change all the old field_key references with the new ones.