How to auto-save Advanced Custom Fields (ACF) data to a file in your theme

With ACF 5, they shipped a relatively-unknown and awesome feature: The ability to have WordPress automatically-save your ACF fields to a json file in your theme folder every time you save your fields. This has the effect of:

  1. Creating a quick, automated backup of your ACF fields to use in case your ACF data becomes corrupted.
  2. Speeding up the load time of ACF fields.

All you need to do is add a folder called, “acf-json”, to your theme folder, and it all works magically from there! Read more about the feature here.

acf auto save
Here’s an example of the json file ACF creates in my theme folder when using this feature.

Is this helpful?

Posted in

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress consultant, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and then to and

Follow Toby's contributions on Github and