ACF fields import cleanly when the destination site already has the field group and every field value sits in its own CSV column. Map those columns to the ACF fields in Import Export by RockStarLab. Repeater and Flexible Content fields take a JSON array inside the CSV cell, so the importer can keep their rows, layouts and subfields.
The example is a travel post with a subtitle, a cover image, two itinerary stops and two content sections. You import it in the WordPress dashboard, check the filled ACF editor, and then let an AI agent update the same post without creating another copy.
What you need before importing ACF data
- Import Export by RockStarLab installed and active on the destination site.
- Advanced Custom Fields active, with the relevant field groups already available. Repeater and Flexible Content require ACF PRO.
- A CSV file containing the post fields and ACF values you want to import.
- The correct destination post type. Posts and pages are available in the free importer; importing custom post types requires Import Export PRO.
- Reachable image URLs when importing media from another website.
ACF PRO and Import Export PRO are separate products. ACF PRO supplies field types such as Repeater and Flexible Content. The Import Export edition determines which content types and import workflows are available.
For an existing website, create a backup before updating content in bulk. Start with a small file and keep new posts as drafts until their fields and layout are ready.
Understand the difference between field definitions and field values
An ACF field group defines the editor: field names, field types, nested subfields, layout names and the rules controlling where the group appears. A post stores the values entered into that structure. Importing a CSV of values does not replace the need to install that structure on the receiving site.
If you are moving content between sites, export the relevant field groups from ACF → Tools on the source site and import them on the destination first. Keep the same field names, field keys and Flexible Content layout names. If your project distributes field groups through ACF Local JSON or PHP, deploy those definitions before importing the content.
Check the location rules too. A group assigned only to Posts will not appear when you open a Page. For a custom post type, install the plugin or theme that registers the post type and assign the group to it before starting the import.
Prepare the example field group and CSV
The example uses a group called Travel guide details, displayed on posts and pages. It contains these four top-level fields:
| Editor label | ACF field name | Type | CSV column |
|---|---|---|---|
| Guide subtitle | guide_subtitle |
Text | acf_guide_subtitle |
| Cover image | guide_cover |
Image | acf_guide_cover |
| Itinerary stops | guide_stops |
Repeater | acf_guide_stops |
| Guide sections | guide_sections |
Flexible Content | acf_guide_sections |
The acf_ prefix identifies the importer’s ACF target fields; it is not part of the field names you create in ACF. Matching column names make Auto Map convenient. If your spreadsheet uses different headings, map them manually to the correct ACF targets.
Download the example ACF field group (ZIP) and sample ACF import CSV. Unzip the field-group download and import the JSON through ACF Tools, then use the CSV in Import Export. The sample includes one draft post and a public image URL. Use a staging site or change the example slug before importing into a site where that slug already exists.
Standard WordPress columns
The CSV starts with post_title, post_name, post_content and post_status. In this example the title is Riverside Weekend Guide, the slug is riverside-weekend-guide, and the status is draft. Keep a stable identifier such as the slug if you plan to update the same content later.
If the source is another WordPress site, export the posts and their ACF fields rather than reconstructing complex values by hand. Include the standard fields you need for matching as well as the ACF columns.
Repeater: put all rows in one JSON array
The Itinerary stops repeater has two subfields: stop_title and minutes. Its CSV cell contains this complete array:
[
{"stop_title":"Riverside walk","minutes":45},
{"stop_title":"Picnic meadow","minutes":60}
]
Each object becomes a repeater row, and its property names match the ACF subfield names. The order of objects defines the order of stops. Put the complete array in a single spreadsheet cell under acf_guide_stops; do not split one post across multiple CSV rows just because it has several repeater entries.
When you save a spreadsheet as CSV, the spreadsheet application normally escapes the quotation marks for you. In a text editor, a quoted JSON cell requires doubled internal quotation marks. The downloadable CSV already uses CSV escaping. The JSON shown above is the cell’s readable value, not a complete CSV record.
Flexible Content: include the layout name for every section
Guide sections supports a Text section and a Photo section. Each object needs acf_fc_layout with the layout’s machine name, followed by the subfields belonging to that layout:
[
{
"acf_fc_layout":"text_section",
"heading":"Plan your route",
"body":"Start in the morning and follow the signed riverside path."
},
{
"acf_fc_layout":"photo_section",
"photo":"https://wpimportexport.com/wp-content/uploads/2026/10/acf-riverside-cover.webp",
"caption":"A view along the weekend route."
}
]
Use text_section, not the display label Text section. ACF must already know both layouts and their subfields. A misspelled layout name cannot identify the intended structure. See ACF’s documentation for Repeater and Flexible Content for how these fields organize content.
Images: use URLs when moving between sites
For the cover image, use a direct image URL in acf_guide_cover. The nested Photo section uses the same kind of URL in its photo property. The destination server must be able to download that file without a login.
Do not copy a source attachment ID and assume it identifies the same image on another site. WordPress IDs are local to each database. Enable automatic media import so the importer can resolve the URL to a destination attachment. An existing matching image may be reused depending on the media duplicate setting; a successful import does not necessarily create another Media Library item.
Import ACF fields through the WordPress dashboard
1. Select the content type and upload the file
Open Import Export → Import, choose Blog Posts for this example, and select CSV as the source format. Upload the sample file. For pages, choose Pages instead. For a custom post type, choose the registered type in the PRO importer and confirm the ACF group applies to it.

2. Review the data preview
Check that the first row is recognized as the column headings and that the values appear under the correct headings. The sample contains one record and eight columns. Repeater and Flexible Content values should remain intact in their respective cells, including their quotation marks and layout names.
If several headings appear in a single column, check the delimiter. If a description or JSON value spills into additional columns, repair the CSV quoting before continuing. A preview catches these problems before they affect WordPress content.

3. Map WordPress fields and ACF fields
Continue to field mapping and click Auto Map. Review the result instead of assuming every similar name represents the same field. Map the four standard columns to their WordPress targets and the four acf_guide_… columns to the corresponding fields in the ACF group.
Map each complete repeater or Flexible Content JSON column to its top-level ACF field. Do not map it to an unrelated generic custom field or to just one nested subfield. If a target is missing, confirm ACF is active, the field definition exists, and its location rules match the chosen content type.

4. Choose matching, update and media options
Use Slug as the duplicate check for this example. Choose to update matching records and create records that do not yet exist. This lets you import the draft initially and revise it later using the same slug. If the file should only update existing content, choose to skip records that are not found.
Enable automatic media import for the cover and nested photo URLs. Select the media duplicate behavior appropriate for your task; skipping an existing media duplicate avoids creating another copy just because the same image appears in two fields.
Keep the sample’s status as draft. Use a small batch while checking the first file, especially when downloading images. A larger batch is not automatically faster if the server is busy or image downloads take time.

5. Run the import and open the resulting post
Start the import and wait for completion. Review the result counts and any reported errors. Then open the imported post in the WordPress editor and find Travel guide details.
The subtitle should contain A relaxed two-stop weekend route. The cover field should show the river image, and the repeater should contain Riverside walk with 45 minutes and Picnic meadow with 60 minutes. Checking the editor confirms that the values are available as ACF fields, rather than merely existing somewhere in post metadata.

Expand Guide sections. The Text section should contain its heading and body. The Photo section should contain a selected image and its caption. Also check the section order if your page template uses it to determine the reading order.

Update existing ACF values without creating duplicate posts
Keep the same slug and use the same matching rule for subsequent imports. To give the picnic a little more time, change its minutes value from 60 to 75 in the repeater array. You can also change the subtitle while keeping the other fields intact.
For a structured field, supply the complete desired array, including rows and layouts you want to retain. Do not assume that sending one repeater object means “append one row” or “patch the second row.” Treat the mapped field as the value you want the post to have after the import.
Review every mapped column before a bulk update. Remove columns from the mapping when you do not intend to update those fields. A blank mapped value should not be used as an informal instruction to preserve existing content; prepare the file and mapping deliberately.
Import and update ACF fields with an AI agent
Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see WordPress AI-agent connection guide). With it, one request is enough:
Ask the agent to discover the current abilities and input schemas. For posts and pages, the workflow uses rsl-ie/upload-create, rsl-ie/upload-chunk, rsl-ie/upload-complete, rsl-ie/import-start and rsl-ie/job-get. For custom post types, have it discover the available PRO import abilities instead of passing a custom type to the free post/page ability.
Prompt: inspect the file before changing anything
Connect to the destination WordPress site and discover the available
Import Export abilities. Read their input schemas. Inspect the attached
ACF CSV and its parsed preview. Check the post type, matching field,
ACF column mappings, Repeater JSON, Flexible Content layout names
and image URLs. Explain the proposed import settings and any missing
field definitions. Do not start an import or change content yet.
The useful output is a specific mapping and an import plan, not a general claim that the file looks fine. The agent should identify the eight sample columns and explain which values are structured JSON. If it cannot inspect the destination definitions through its available tools, it should say so and ask you to confirm them in ACF.
Prompt: import the prepared draft
Import the attached travel-guide CSV into WordPress posts using
Import Export. Map the four post columns and all four ACF columns.
Match existing posts by slug; update matches and create missing posts.
Keep the post as a draft. Enable ACF processing and automatic media
import, reusing existing media where the configured duplicate mode
allows it. Start the import, keep the same request_id if retrying the
same start request, and poll the job until it finishes. Report success,
failure and skipped counts. Then open the post in the browser and
check its subtitle, cover, both repeater rows and both flexible layouts.
Prompt: update the same post
Prepare an updated CSV for riverside-weekend-guide. Change its ACF
subtitle to A relaxed weekend route with a riverside picnic and the
Picnic meadow duration to 75 minutes. Retain the complete repeater
array, both Flexible Content layouts and their image references.
Import with slug matching, update existing posts and skip missing ones.
Do not create a new post or publish it. Poll the job, then verify in the
browser that the same post has the new subtitle and duration and still
contains the cover image and both content layouts.
The resulting editor should show the new subtitle and 75 minutes for the second stop. If the agent has MCP access but no browser access, open the editor yourself for this final visual check.

Troubleshooting ACF CSV imports
| Symptom | What to check |
|---|---|
| ACF fields are absent from mapping | Activate ACF, install the field definitions, and check the group’s location rules against the selected post type. |
| A repeater is empty or incomplete | Validate the JSON, use subfield names rather than labels, and map the complete array to the repeater target. |
| Flexible Content sections are missing | Check each acf_fc_layout value against the registered layout name and include its expected subfields. |
| An image field is empty | Check that the source URL points directly to an accessible file, enable media import, and inspect the job’s errors. |
| A repeat import creates another post | Check that the identifier is unchanged and the duplicate rule matches by that identifier with update behavior. |
| Fields appear in the editor but not on the public page | Check the theme template or page builder’s dynamic field bindings. Importing ACF data does not create a frontend layout. |
For relationship fields, post-object fields or other references beyond this example, plan how the referenced content will be identified on the destination. A working image URL workflow does not imply that every numeric reference can safely be copied between databases.
Finish with an editor and frontend check
Before running a larger file, compare one imported post with its intended values: title, slug, status, text fields, repeater row count, Flexible Content layouts and image selections. Then preview it with the actual template that renders those fields. ACF stores the data; your theme or builder controls its appearance.
Once the sample is correct, reuse the same field definitions, file structure and matching rules for the rest of the content. Keep the Import Export documentation handy for related export, media and automation workflows.
Frequently asked questions
Can I import ACF fields from CSV?
Yes. Create the relevant ACF field definitions on the destination, upload the CSV and map each column to its ACF target. Structured fields need values that match their subfields and layouts.
Do I need ACF PRO to import Repeater and Flexible Content fields?
Yes. Repeater and Flexible Content are ACF PRO field types. This is separate from the Import Export edition: the free importer handles posts and pages, while custom post type imports require Import Export PRO.
Does the CSV create my ACF field groups?
No. Install or import the field definitions first, including nested subfields, Flexible Content layouts and location rules. The CSV supplies content values for that structure.
How do I format an ACF Repeater in a CSV file?
Put a JSON array in one cell. Each object represents a repeater row and uses the ACF subfield names as keys. Map the column to the top-level repeater field.
Can I import ACF images from another website?
Use reachable direct image URLs and enable automatic media import. The importer resolves them to destination attachments. Avoid assuming that source attachment IDs identify the same images on another site.
How do I update ACF fields without duplicate posts?
Keep a stable identifier such as the post slug and choose to update matching records. For Repeater and Flexible Content, supply the complete desired array rather than assuming individual rows will be appended or merged.
Will importing ACF fields reproduce my page design?
The import populates field values. Your theme or page builder must render those fields; importing content does not automatically create the frontend template.
Can an AI agent run the import?
An agent connected to the site’s MCP server can use the available Import Export abilities to upload a file, start an import and monitor its status. Review its mapping and settings, then check the resulting fields in the WordPress editor.

Comments 0
Have a question or a tip to share? Leave it below.