Support

Account

Home Forums Bug Reports Sync bug – fields sync themselves

Solved

Sync bug – fields sync themselves

    • benw

    • May 7, 2020 at 1:54 am

    This is happening in ACF Pro 5.8.8 and 5.8.9

    On a local development website, I added a new custom field to a custom field group and saved it. Then I uploaded the .json file to a staging website.

    The new field was shown when editing pages even though I hadn’t run the “sync” yet.
    When editing the actual custom field group (on staging), the new field was not shown until after I had run sync.

  • Syncing is to sync the database with the json file, not the other way round. If a JSON version of the field group exists this will always be used everywhere except when editing the field group in the admin.

    The only purpose of the syncing is to update the field group so you can edit it without destroying changes in the existing JSON file.

    The field group does not even need to exist in the database on the staging site. You could delete all of the field groups from the staging site through ACF and then upload all of the json files from the local dev site. The db version on the staging site is unnecessary overhead if you don’t plan on editing them there.

    • benw

    • May 11, 2020 at 9:37 pm

    Ah ok, that makes sense.

    Thanks for the clarification!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

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.