How to Export Advanced Custom Fields (ACF)
WP All Export along with the ACF Export Add-On allows you to export data from any Advanced Custom Fields present in your post type or custom post type.
The Advanced Custom Fields (ACF) plugin extends basic custom fields to enable more complex fields, different layouts, and settings. WP All Import has an integration with the ACF plugin to export the information stored in such fields.
Export basic ACF text fields such as text area, number, range, email, URL, password, etc.
Export ACF picker fields such as date picker, date time picker, time picker, and color picker.
Export ACF media fields such as image, file, oEmbed, gallery, or even a Wysiwyg editor.
Export ACF choice fields such as select, checkbox, radio button, button group, etc.
Export ACF taxonomy fields using drag and drop.
Export ACF google maps fields with the address, latitude, and longitude information.
Export ACF relational fields such as link, post object, page link, relationship, etc.
Export ACF repeater and group fields easily.
Export ACF flexible content fields.
To export Advanced Custom Fields, go to WP All Export › New Export and select the post type or custom post type attached to your ACF fields. Set up the export using drag & drop, then process the export and proceed to download the export file.
Step 1: Create New Advanced Custom Fields (ACF) Export
Go to All Export › New Export and select the post type which contains the Advanced Custom Fields to export. In this guide, we are exporting Posts that contain various Advanced Custom Fields (ACF).
Click Customize Export File to continue and set up which fields to export.
Step 2: Define Which Advanced Custom Fields (ACF) to Export
The next screen is the Drag & Drop interface. Here you can define the fields to be included with your posts export.
Under the Available Data › ACF section, you can find the different field groups and Advanced Custom Fields available to export.
Drag and drop all the desired fields from right to left. Once you define the export template, click the blue Continue button.
Step 3: Configure Export Settings and Download ACF Export File
WP All Export will show the Export Settings screen. Here you can define Scheduling Options (to automate this export on a regular basis), or Advanced Options (such as only exporting posts once, or creating a new export file every time the export is run).
Generally speaking, the settings can be kept at default. Click on Confirm & Run Export to export all the posts along with their attached Advanced Custom Fields.
To download the exported file along with the Advanced Custom Fields, click on the CSV or XML blue button.
Export Advanced Custom Fields — Advanced Topics
How to Export Advanced Custom Fields On Their Own
This is not possible because Advanced Custom Fields are attached to post types or custom post types that exist on your site.
This means that you would need to export those post types to export the ACF fields attached to them. For example, when exporting Pages, WooCommerce Products, or WooCommerce Orders you can also export any Advanced Custom Fields attached to them.
WP All Export will export the actual data that's contained in those fields.
To export or import the ACF Field Groups themselves, you can use the options in Custom Fields › Tools.
Which Advanced Custom Fields to Export
You can export all default Advanced Custom Fields that are attached to the post type. The main categories are:
Each category contains several fields. For example, the Basic fields are Text, Text area, Number, Range, Email, Url, and Password. To see all fields that you can export, refer to the table of contents at the beginning of this guide.
To export other custom ACF fields, you can use custom PHP code (see documentation) to parse the data as needed.
Export Advanced Custom Fields – Custom Hooks or Filters
You can use the wp_all_export_repeater_delimiter filter to change the default delimiter used in exported ACF Repeater fields.
Frequently Asked Questions
How to Schedule an Advanced Custom Fields Export?
You can schedule your exports of ACF fields directly through our interface by using our Automatic Scheduling Service. Alternatively, you can create cron jobs manually on your server. Either approach will work, though our scheduling service is definitely more convenient.
How to Import Advanced Custom Fields?
- Make sure WP All Import and our ACF Add-On are active.
- Go to All Import › New Import and start a new import of the post type where you added the ACF fields. Provide a valid input file.
- Map the incoming data elements to their correct ACF fields.
- Configure the remaining settings and run the import.
- Review the imported data to make sure it is correct.
How to Modify Advanced Custom Fields in Bulk?
- Create the export with the ACF fields that you want to change.
- Modify the export file in spreadsheet software (such as Numbers, Microsoft Excel, or Google Sheets), where it is easy to perform bulk changes with copy and paste, search-and-replace, etc.
- After you've made the changes, re-import the file back into WordPress using the Import with WP All Import option.
- After the import is complete, make sure you verify that your changes were correctly applied.
To learn more about the bulk edit process, please see the bulk editing overview.
Where Are Advanced Custom Fields Stored?
ACF stores the data for post custom fields in the post_meta table. It stores the data for all other custom fields in the options table. All the ACF data can be accessed using standard WordPress functions like get_post_meta and get_option if you use the correct meta_key or option_name.
How to Get an Advanced Custom Field Value?
Although you can retrieve an ACF value using a standard WP function like get_post_meta, the best way is to use an ACF function like get_field(). Using this function, ACF will format the value based on the field type, which makes it easier to use on the front end.
What Happens When ACF Adds a Field?
No worries. We work with the ACF team to stay on top of new features and fields coming to ACF, so our plugins are generally up-to-date. If you do notice a new ACF field that we don't yet support, let us know and we'll get you sorted out.
Learn more about how to import Advanced Custom Fields with WP All Import.