---
title: "How to Export and Import Custom Post Types with Custom Taxonomies and ACF Fields"
url: "https://wpimportexport.com/how-to-export-and-import-custom-post-types-with-custom-taxonomies-and-acf-fields/"
description: "Move WordPress custom post types with taxonomy terms, ACF values and images. Map CSV columns, update projects by slug, or run the transfer with an AI agent."
type: post
published: 2026-10-06T13:01:28+00:00
modified: 2026-11-14T10:39:50+00:00
categories: ["ACF", "Export Guides", "Import Export Guides", "Import Guides"]
tags: ["ACF custom fields", "ACF export", "ACF import", "CPT", "CSV Export", "CSV import", "custom post types", "Import Export by RockStarLab"]
docs_topics: ["Export guides"]
---

# How to Export and Import Custom Post Types with Custom Taxonomies and ACF Fields

A portfolio project is more than its text: it has a discipline from a custom taxonomy, a client in an ACF field and a cover image. All three have to arrive on the other site. Choose **Custom Post Types** in Import Export by RockStarLab PRO on both sites, export each entry’s slug, content, taxonomy assignments and custom fields, and on the receiving site select the destination post type before you map the columns.

The example moves a Portfolio project called _Riverside Field Notes_. Its discipline is Editorial Design, its client is Riverside Press, and its cover is an ACF image. Those three details give you something concrete to check after importing the project.

## Prepare the destination Portfolio

Register the destination post type and attach its custom taxonomy. In ACF, make sure the project field group appears when editing a Portfolio entry. The client field should accept text and the cover should accept an image. The CSV carries values and term assignments. Your theme, plugin or ACF configuration supplies the field definitions and the post type itself.

If the destination uses different names, choose the intended post type in the import wizard, then map the source columns to compatible destination fields. Keep the source image accessible until the import finishes. Before updating existing projects, make a [restorable backup of the destination](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/).

## 1. Select the custom post type on the source site

Open **Import Export by RockStarLab → Export → Custom Post Types**. Click **Next Step** and choose **Portfolio** in the post type filter. Check the record count. To export just part of the portfolio, narrow the selection using an additional filter, such as a specific ID or slug. See the [export filter examples](https://wpimportexport.com/wordpress-export-data-filters-examples-how-to-use-them-effectively/) for more selection rules.

![Select Portfolio as the source post type in the export filter](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-01-type.webp)

_Select Portfolio as the source post type in the export filter._

## 2. Include the fields that make the entry usable

Select the post title, slug, content and status. Add **Disciplines** from the taxonomy group and the client and cover from **ACF Fields**. Choose CSV with a header row, then start the export and download the file.

![Choose post fields, the discipline taxonomy and registered ACF fields](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-02-fields.webp)

_Choose post fields, the discipline taxonomy and registered ACF fields._

| Example column | What to look for in the export |
| --- | --- |
| `post_name` | A stable slug such as `riverside-field-notes`. Use it to match this project when applying a revision. |
| `post_content` and `post_status` | The stored body, including its HTML, and the intended publication state. A draft can stay a draft. |
| `taxonomy_project_discipline` | A structured list containing the term name and slug. Keep the whole cell intact, including when a project has several terms. |
| `acf_project_client` | The client name as text. |
| `acf_project_cover` | A source image URL that the destination can fetch. WordPress assigns its own attachment ID on each site. |

Open the CSV with a CSV-aware spreadsheet reader. A taxonomy cell can contain commas and quotes. If you need to move the whole vocabulary, including terms that no project uses, follow the [custom taxonomy and term transfer guide](https://wpimportexport.com/how-to-export-import-wordpress-categories-tags-custom-taxonomies/).

## 3. Upload the file and map it to the destination CPT

On the receiving site, choose **Import → Custom Post Types**, upload the file and inspect the preview. Check the slug, client and image URL against the example project.

![Inspect the project row and cover image URL in the import preview](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-03-preview.webp)

_Inspect the project row and cover image URL in the import preview._

In **Field Mapping**, first select the destination under **Choose post type**. Click **Auto Map** and review the pairs. The discipline column belongs to the project taxonomy. The cover belongs to the ACF image field. Map a featured image separately if the project also uses the native WordPress thumbnail.

![Select the destination Portfolio type before mapping the seven file columns](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-04-mapping.webp)

_Select the destination Portfolio type before mapping the seven file columns._

## 4. Match existing projects and download their images

Use **Slug** for matching when each project has a unique, stable slug on both sites. Select **Update** for a match and **Create** for a missing project if the file contains both new work and revisions. For an update-only file, choose **Skip** for missing matches. Review name changes before using this rule: a changed slug can be treated as a new project.

![Match by slug and enable media import to bring the project cover into the destination](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-05-options.webp)

_Match by slug and enable media import to bring the project cover into the destination._

Enable **Automatically Import Media Files**. The media duplicate option lets you reuse an existing matching file. Start the import and inspect the individual counters when it finishes. On a repeat run with a matching slug, expect an update to the existing entry.

![Review the Updated and Created counts after importing an existing project](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-06-result.webp)

_Review the Updated and Created counts after importing an existing project._

## 5. Verify the imported project in WordPress

Open **Portfolio** on the destination and edit the imported entry. Check that Editorial Design is assigned in Disciplines and the record has the intended status. Compare the body with the source and confirm there is only one entry with the expected slug.

![Check the Editorial Design term in the destination Portfolio editor](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-07-editor.webp)

_Check the Editorial Design term in the destination Portfolio editor._

In **Project details**, check the client name and open the cover image. Its attachment should load from the receiving site’s Media Library. A filled text field alone does not establish that the media transferred.

![Confirm the client name and cover in the Project details field group](https://wpimportexport.com/wp-content/uploads/2026/11/portfolio-csv-08-acf.webp)

_Confirm the client name and cover in the Project details field group._

## Move a custom post type with an AI agent

Connect the agent to both sites using the [WordPress Abilities API setup guide](https://wpimportexport.com/how-to-use-the-wordpress-abilities-api-with-ai-agents-exports-imports-content-sync-and-backups/). Specify which site owns the export and which site should receive it. For example:

> On the source site, export the selected Portfolio projects to CSV using the PRO custom post type export. Include title, slug, HTML body, status, the discipline taxonomy, the ACF client and cover image. Download the file and confirm that a known term slug and the cover URL are present in its row.

> Prepare the uploaded CSV for the destination Portfolio post type. Show the mapping for every column, including the taxonomy and both ACF fields. Match by slug, update matches, create missing projects and import media. Validate the mapping before starting. After completion, report the row counts and verify the term, client and destination image for Riverside Field Notes.

The export uses `rsl-ie-pro/export-start` with `export_type` set to `custom_post_types` and the real post type key in `options.post_type`. On the destination, use the uploaded file ID, the destination post type and explicit mappings with `rsl-ie-pro/import-validate` before `rsl-ie-pro/import-start`. Wait for completion before checking the editor.

For subsequent transfers, choose the workflow that fits your team: [schedule a recurring export](https://wpimportexport.com/how-to-schedule-repeated-exports-in-wordpress/) if someone needs a file, or [sync custom post types directly between sites](https://wpimportexport.com/how-to-sync-custom-post-types-with-acf-and-taxonomies-between-two-wordpress-sites/) when both sites are connected.

## Frequently asked questions

### Can I export a WordPress custom post type with its custom taxonomies and ACF fields?

Yes. Choose Custom Post Types in the export wizard, filter the records, then select the post, taxonomy, and ACF fields you want to include. You can export all available fields or choose only specific ones.

### Do the source and destination sites need to use the same post type and taxonomy keys?

No. Select the destination post type during import and map each incoming taxonomy column to the intended destination taxonomy. The destination post type and taxonomies must exist, and the mappings must be correct.

### Can I map imported data to ACF fields with different names?

Yes. Auto Map can match familiar field names, or you can manually map an incoming column to a differently named destination ACF field. The destination field must already exist and have a compatible data structure.

### Which export format should I use for WordPress content?

CSV is a practical choice for tabular data, spreadsheets, and routine imports. XLSX and ODS suit spreadsheet workflows; JSON is useful for APIs and scripts; XML is appropriate when the receiving system expects XML. The plugin importer supports CSV, JSON, XML, XLSX, and ODS files.

### Should I back up my site before importing content?

Yes. An import can create or update posts, metadata, and taxonomy assignments, so make and verify a backup first. A database-only backup does not include uploaded media files; back those up separately if they are part of the import.

### Will importing media automatically fix ACF image and gallery fields?

Not necessarily. ACF image, file, gallery, and relationship fields can contain IDs tied to the source site. Import the media when needed, then verify these fields and their references on the destination.

### Can I schedule recurring exports or transform fields during import and export?

Schedules can rerun a completed job's saved configuration at a selected interval; they do not automatically export only changed records. Field transformations can be assigned during import or export with the PRO add-on; they are not available in the free version.
