Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

How do you synchronize ACF field groups with Local JSON?

Illustration without a description Illustration without a description

ACF Local JSON stores field-group definitions as files that can be versioned and moved with a theme or plugin. Create a writable acf-json directory in the active theme. When you save a field group, ACF writes or updates its JSON file there and loads eligible definitions during initialization.

 

Commit the JSON files with the project code. On another environment, open ACF Field Groups and use the available Sync action when the JSON file is newer than the database version or the group does not exist locally. Review the field names, keys, and Location Rules before syncing because the imported definition can change the editor for existing content.

 

If the project uses a custom folder, set both the save and load paths. A save-only customization creates files that ACF may never read on the next environment. The relevant filters are acf/settings/save_json and acf/settings/load_json. Keep their paths stable across local, staging, and production installations.

 

Treat JSON as the shared definition and the database as environment state. Coordinate field-group edits so two developers do not overwrite each other’s keys or settings. Back up before syncing a large change, deploy the files first, then run the sync and test existing entries on staging.