WP All Export
How to export ACPT meta fields and CCT table records with WP All Export
ACPT has a specific integration with WP All Export, letting you include meta fields — and, for Custom Content Types, table records — in any XML export you build for custom post types, taxonomies, or users.
The integration ships as a set of PHP functions you drop into a custom XML node in the WP All Export template. Each function returns a self-contained XML blob for one item (one post, one term, or one user), which the companion WP All Import integration knows how to read back in.
Step 1. Create a custom post type
This topic was covered multiple times, so please refer to other tutorials.
Suppose we create a CPT called "Movie" with just three simple meta fields:
text
email
list
Ok, let's move to step 2.
Step 2. Export the meta fields
Go to WP All Export and select the Movie custom post type.
Now, select the XML custom format:
In the post loop, drag the standard fields you need (ID, title, etc...) and then create a custom XML node, the name of the node doesn't matter, and use this special PHP function:
[wpae_acpt_export_all_fields({ID})]This function takes just the post ID as an argument, and it exports the settings and the values of every Movie meta field associated with a given ID:

Go ahead and export the XML and you are good to go for import.
Exporting Taxonomy or User meta fields
If you need to export taxonomy and user meta fields, the whole process is identical, except for the name of the PHP function to use:
Again, these functions take just one argument. Use these functions in your custom XML and export them everywhere you need.
Exporting CCT table records
Custom Content Types (CCT) tables using the "allow multiple records per host" setting are managed as standalone records — each with its own numeric ID, visible in the table's Records list — rather than being folded automatically into the post's meta fields. Because of that, they are not included in wpae_acpt_export_all_fields() — export them with the dedicated functions instead:
Each function takes the post/term/user ID, looks up every CCT table attached to that item through its table group's location rules, and — for the tables using that setting — serializes their record into one XML blob.
Example
Suppose the Movie CPT has a table group whose location rules attach it to Movies, with two record-based tables: review (columns author, rating) and specs (columns runtime_minutes, aspect_ratio). Add this to a custom XML node:
For a Movie linked to one record in each table, this produces:
JSON-shaped columns (repeater/flexible content, foreign keys with multiple targets, etc.) are marked type="json" and contain a JSON-encoded value instead of a plain scalar.
Export the XML and move on to WP All Import to read it back in.
Last updated