From the course: WordPress: Advanced Custom Fields

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Exporting field groups

Exporting field groups - WordPress Tutorial

From the course: WordPress: Advanced Custom Fields

Start my 1-month free trial

Exporting field groups

- [Instructor] Up until this point we've put a lot of work into our field groups. But what if we need to export or import a field group? ACF has us covered there, too. If we go to Custom Fields, Tools, you'll see that we have the option to import and export field groups right from this screen. You'll also notice that we can select all or some of the field groups we created. And that there are two ways to export the field groups. The first way is through a JSON file. This JSON file can be used to import our field groups in another WordPress install. We also have the option of generating the PHP code for our field groups. There are a few benefits to this. First is that we'll have a local copy right in our theme or plugin code, which makes it a little bit faster. We can also easily control versions of our field groups. So if we're making changes we don't lose previous versions. We can add dynamic values to our field groups. So if we want to write out instructions instead of having to add…

Contents