Move 4 things—post type registration, field groups, post meta, and templates—before import. For how to migrate an auto blog’s custom post types and fields…
Last updated: November 29, 2026
Quick answer: move 4 things—post type registration, field groups, post meta, and templates—before import. For how to migrate an auto blog’s custom post types and fields to a new WordPress site, register the same content types first, export the structured content next, then match the field definitions and templates before you switch traffic.
Key takeaways
- Custom post types are only half the job; the field definitions and theme files have to match too.
- Import content after the new site already knows what each post type and field should be.
- The WordPress exporter can carry posts and some meta, but plugin-specific field groups may need a separate export.
- Template files matter because a post type can import cleanly and still render blank or oddly styled.
- This is not a one-click job for a site that depends on Advanced Custom Fields or similar structure.
What needs to move first?
Therefore, the custom post type registration needs to exist on the new site before any import runs. If the importer does not know the post type key, WordPress can dump those entries into a plain post or leave them stranded in the database. That can strip away structure even when the content itself is still there.
A complete move usually has four parts: the custom post type registration, the field groups or meta boxes, the post content with its post meta, and the theme templates that display it. WordPress can export a lot of content through the built-in exporter, but a structured site depends on more than the default post body. The WordPress exporter is only one layer of the transfer, not the whole transfer.
In particular, this is the point many generic migration guides miss. They treat a custom post type like a normal post category, when it is really a content object with its own label, rewrite rules, archive behavior, and field schema. If those pieces do not line up on the new site, the import may succeed while the site still looks broken. If you are unsure about the schema, consult a WordPress developer or migration professional and review the WordPress documentation and plugin docs before you move forward.
- https://wordpress.org/documentation/article/custom-fields/
- https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/
- https://developer.wordpress.org/themes/template-files-section/post-template-files/
Which files and data should you export?
Therefore, you should export the content, the field definitions, and the template files as separate parts. The content export carries the posts and pages; the field definition export carries the structure that tells WordPress what values to expect; the theme export carries the layout that displays those values.
For an auto blog, the critical data is usually the custom post type entries, post meta, and any field groups from Advanced Custom Fields or a similar plugin. If the site uses meta boxes, those settings may live in plugin settings, theme files, or a mix of both. Do not assume one XML file will contain everything.
Use this comparison to decide what belongs in each export path:
| Item | Where it usually lives | What breaks if it is missing |
|---|---|---|
| Custom post type registration | Plugin or theme code | Imports land as normal posts or lose their archive view |
| Post content | WordPress exporter | Article text and featured media may not come across |
| Post meta | Database and export file | Field values appear empty on the new site |
| ACF field groups | ACF export or plugin settings | Fields may not show in the editor |
| Theme templates | Theme files | Content imports, but the front end renders wrong |

The hard rule is simple: export what creates the data and export what displays it. A site can survive without one custom template file for a while, but it cannot keep its structure if the field group and post type definitions are missing.
How do you register the post type on the new site?
Once the structure is defined, you register the post type on the new site first, then import the content into it. That keeps the importer from guessing. If the original post type key was reviews or deals, the new site needs the same key and the same basic arguments, not just a similar label in the admin menu.
Start with the exact registration code or the same plugin that created the post type. If the old site used a theme to register it and the new site uses a plugin, the code still needs to match the old key, slug, and supports settings closely enough for the import to land in the right place. The archive slug, public status, and supported editor features should be checked before import day.
Core steps
-
Copy the post type registration code or plugin setup to the new site first.
Do this before importing anything. The result should be a visible menu item in the dashboard and a matching post type key. -
Register any taxonomies tied to that post type.
If the content depends on a taxonomy such as a brand or review category, add that too. A post type without its terms can import, but its filters and archives will feel incomplete. -
Set the same rewrite slug and public settings.
This keeps URLs and archive pages close to the original structure. A changed slug can create 404s after the move. -
Confirm the editor supports the same features.
If the old post type used title, editor, thumbnail, or custom fields support, keep those supports active. Otherwise the admin screen may hide parts of the content. -
Flush permalinks after the post type exists.
Save the permalink settings once on the new site so WordPress rebuilds its rewrite rules. Without that step, archive links can fail even when the registration is correct.
Because this section is where many migrations go wrong, the team often imports first and registers later. That order creates messy data, extra cleanup, and a second pass through the importer. The safer sequence is boring but effective: define, then import, then test.
How do you move Advanced Custom Fields and post meta?
Since Advanced Custom Fields and post meta depend on matching names, you move them by exporting the field definitions, recreating them on the new site, and then importing content that already contains the saved values. Field groups without values are just labels. Values without field groups are just raw meta keys.
Advanced Custom Fields needs special care because its field groups often live outside the normal WordPress exporter. The field names, field keys, location rules, and return formats should match the old site. If the new site uses a different field name, the old meta value may still exist in the database but the editor will not know where to show it.
Use the WordPress exporter for the content, then verify the field group export path your plugin uses. Some setups store the field definitions in PHP, some export JSON, and some keep them in the database. The point is not the format; the point is that the new site must know the same fields before the imported posts arrive.
The common failure looks like this: the post title imports, the custom post type shows up, but every price, rating, source URL, or summary field is blank. That usually means the post meta came across under keys the new site does not recognize, or the field group was never registered. The fix is not to retype every post by hand. The fix is to make the field schema match first.
This is also where a plain copy of the database can create hidden trouble, which is why this page does not try to solve database migration itself. If the meta keys are correct but the field group is missing, you still get empty boxes in the editor. If the field group is present but the meta keys do not match, you get fields with no values.
How do you keep theme templates from breaking?
Because templates control output, you keep theme templates from breaking by moving the template files that render the custom post type and its fields. A post type can import cleanly and still look wrong if the single template, archive template, or field output code is missing from the new theme.
Check the theme for files such as single post type templates, archive templates, and any partials that print custom fields. If the old theme used conditional code to show a field only when it had a value, copy that logic too. A field may exist in the editor while the front end still hides it if the template expects a different key or format.
The hidden dependency here is the template hierarchy. WordPress will fall back to generic templates if it cannot find a custom one, and that fallback can make a specialized content type look like a generic blog post. That is often the first sign the migration is incomplete, even when the admin area seems fine.
A practical check is to open one imported post of each type on the front end and compare the output to the old site. Look at the title area, the body, the custom field areas, and the archive listing. If a card or detail page depends on a field like image, source name, or summary, that output should appear in the same spot and with the same formatting.
Do not treat this as optional polish. For an auto blog, template logic is part of the content system. Missing templates turn structured data into messy pages. If the site is business-critical, consult a WordPress developer or migration professional and review the WordPress template hierarchy documentation before you cut over.
- https://developer.wordpress.org/themes/basics/template-hierarchy/
- https://developer.wordpress.org/themes/template-files-section/post-template-files/
What should you check after import?
Therefore, you should check the post type count, the field values, the archive pages, and the URLs after import. A migration is not finished when the importer says it completed. It is finished when the admin screens and the front end both show the same structure as the old site.
Start with one imported item from each custom post type. Open it in the editor and confirm that the custom fields are populated, not just present. Then open the public page and confirm that the template outputs the same sections in the same order. If the site uses taxonomies or custom archives, click those too.
A short checklist keeps this from turning into guesswork:
- Confirm the custom post type appears in the dashboard.
- Confirm at least one imported record opens under that post type, not under Posts.
- Confirm the field group is visible in the editor.
- Confirm field values appear in the right fields.
- Confirm archive and single pages resolve without 404s.
- Confirm the template shows the custom data, not a blank fallback.
If a field looks wrong, the first place to check is the field key or meta key, not the content body. If a page looks wrong, the first place to check is the template file, not the importer. That order saves time because it separates data problems from display problems.
This is the point where a generic migration checklist is not enough. A custom post type site needs structural checks, not just a green import message.
When should you stop and fix the setup before importing?
If the new site does not already match the old post type names, field keys, or template paths, you should stop and fix the setup before importing. Importing into the wrong structure creates cleanup work that can take longer than the original transfer.
If the site depends on Advanced Custom Fields, a custom plugin, or theme-based registration, get those pieces in place first. If the new site is using a different theme layout or a different field plugin, the import can still work, but only after you map the structure carefully. This is why this page is not the right starting point for a site that has not defined its content model yet.
The trade-off is simple. A careful setup takes longer up front, but it avoids a second import, broken archives, and blank custom fields. A rushed import saves an hour and can cost a day.
This guide belongs with the larger WordPress auto blog migration technical transfer process, but it does not replace the pages about field mapping or database handling. Those are separate jobs. This page is about getting custom post types, post meta, ACF field groups, and templates onto the new site in the right order.
Why do custom fields disappear after import?
Because the field group or meta key does not match what the new site expects, custom fields disappear after import. The data may still exist in the database, but WordPress will not display it in the editor unless the field definition is present. The usual fix is to register the same field group and confirm the field names before importing again.
Do custom post types need the same plugin on both sites?
Custom post types need the same registration on both sites, even if that comes from a plugin on one site and theme code on the other. The important part is the same post type key and the same behavior. If the registration changes, imported items can land in the wrong place or lose their archive view.
How do you verify field values after migration?
To verify field values after migration, open a sample item in the editor and check the front end on the same item. The editor tells you whether the meta key and field group matched; the front end tells you whether the template can display the value. Check at least one post from each custom post type before you call the migration done.
Drafted with AI; not yet reviewed by a person.