Nice. I did something similar, but baked it into a WP Admin page. User hits the page in the tools menu, pushes a button and the sync runs.
@Elliot Condon
Thanks for your help.
Definitely nothing in the db.
Digging into the json – the repeater’s field ID seems to be duplicated in two of the field group json files.
Is it possible to adjust without losing the content that has already been loaded?
The sub-fields of the repeater are unique across both field groups.
Cheers,
Matt
On staging/production – where I pulled the first screenshot from, we’re only loading the json files.
edit: We have disabled the ACF admin screens in that environment, so the 2nd screenshot above is from my local dev instance.
JSON files are included in our theme and under version control.
Followup:
We think this may have to do with duplicating fields and moving them to another group.
Inspecting the editor showed us that the duplicated fields on the edit screen have the same slugs, but different ids
In this case, what’s showing up on the post editor is a set of fields we duplicated from another group.
i.e. we get two fields named jv_subheading, but one is field_542228e1ac753
and the other is field_54206f572fbf5
Did you get sorted? If so, what was the fix?
I’ve got almost the exact same issue:
http://support.advancedcustomfields.com/forums/topic/duplicated-fields-in-page-editor/
The wp-admin field group edit screen will not load data from local json files. This functionality will hopefully soon make it’s way into the plugin.
Manually editing field settings within a local json file will not be visible when editing the field group within the wp-admin edit screen, but will be visible when entering or loading data.
http://www.advancedcustomfields.com/resources/local-json/
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.