How to move comments, authorship, and post metadata to the new site: In a typical 3-part migration, you need to move comments, authorship, and post…
Last updated: November 28, 2026
Key Takeaways
- Move three things with each post: comments, the byline, and custom-field metadata.
- Use WordPress export first for simple moves; use a database export if the import loses fields.
- Export linked post records, then map imported authors to existing users on the new site.
- Keep
postmetaentries, not just the post body, so the metadata survives.
Quick Answer: In a typical 3-part migration, you need to move comments, authorship, and post metadata together, not separately, or the new WordPress site can look half-migrated.
Therefore, the safest path is to export the content in a way that preserves post meta, then check how the import handles comment IDs, authors, custom fields, and publish dates before you switch traffic. This article is about how to move comments, authorship, and post metadata to the new site.
What has to move with the post?
You need three things to travel with each post: the comments attached to it, the author name tied to it, and the post metadata stored as custom fields. In WordPress terms, that usually means the post record, the `wp_comments` rows linked to it, the author assignment, and the `postmeta` entries that hold extra fields.
Because a basic content export can leave the page looking complete while the details are wrong, a post can show the right title and body but lose the original publish date, the post status history, or the custom fields that an auto blog uses for source URLs, canonical data, or image notes.
Specifically, the quickest way to think about the job is this: the post is the shell, comments are the thread under it, authorship is the byline, and post metadata is the machine room. If one piece breaks, the new site may still load, but the archive will not match the old site.
For example, WordPress documents the built-in export flow under the Tools screen, and that is the first place to check: the WordPress support docs for export at wordpress.org/documentation/article/tools-export-screen/. For the data model behind post metadata, the WordPress developer reference for `wp_postmeta` is the clearest term to know.
Which export method should I use?
The built-in WordPress export is the right first choice for most single-site moves, and a database-level export is the backup plan when the import drops fields you need.
That choice changes how much of the source site’s structure survives, especially when comments, authors, and custom fields are all in play. WordPress.org’s export and import docs describe the standard path, and the database tables behind the content are documented in the developer reference. See the WordPress export screen, the Tools Export Screen, and the WordPress developer documentation for the objects the platform expects to handle.
Here is the practical comparison.
| Method | Best for | Strength | Weak point |
|---|---|---|---|
| WordPress built-in export | Standard post moves | Simple and familiar | Can miss or flatten some metadata handling |
| XML/WXR import | Moving posts and comments together | Keeps WordPress structure | Depends on the importer and field support |
| Database-level copy | Full control over tables | Best chance of keeping raw meta intact | Harder to map to a new site cleanly |

However, the built-in export is enough when the new site has the same content model and the importer understands the same fields. It is less reliable when the old site has many custom fields, unusual author handling, or a history of status changes that need to stay visible. In that case, the move can still work, but you need to check the result post by post.
In contrast, a database copy gives more control over tables, and it also gives more room to break things. A raw table move can preserve `postmeta`, `comments`, and user links, yet it can also leave IDs pointing at the wrong records if the import process is not mapped carefully. That is why the built-in export is usually the first pass, not the last word.
How do I move comments and authorship?
You move comments and authorship by exporting the post data with its linked records, then matching imported authors to existing users on the new site. The key is to keep the post ID relationship intact so the comments land under the correct post and the byline points to a real author account.
Then, use this sequence:
- Export the content from the old site through WordPress export tools, and include the content type that holds the posts you need.
- On the new site, make sure the author accounts already exist or can be matched during import.
- Run the WordPress import so the posts arrive with their attached comments instead of as empty shells.
- Check each imported post for the author name, the comment thread, and the publish date.
- Reassign any post that landed under the wrong author before you publish the new site.
- Confirm that the comment count and visible comment order still match the original post.
Because author names and user IDs are not the same thing, a post can show the right display name while still being attached to the wrong user record behind the scenes. That creates trouble later if the site uses author archives, editorial filters, or any automation tied to a specific account.
Likewise, comment text may import cleanly while the internal linkage lands on the wrong post if the import process loses the original post reference. A reader sees a broken thread before you do, because the page shows replies in the wrong place or not at all.
As a result, this is also where a lot of migrations go wrong for auto blogs. People focus on the post body and forget that comments and authorship are part of the post’s identity, not decorative extras. If the old site used one author for every automated post, that can hide the mistake at first, then break the archive later when filters, archives, or widgets expect a different user.
How do I keep post metadata?
You keep post metadata by making sure the migration includes `postmeta` entries, not just the post content itself. In WordPress, metadata is often stored as custom fields, and those fields may hold more of the post’s working parts than the body text does.
Because this is the part most generic guides leave out, a post can look fine after import and still be missing the data that powers templates, source references, featured logic, or special display rules. The page title and article text survive, but the site behaves as if the post is new and incomplete.
Therefore, the safest check is to compare a small set of posts on both sites and inspect the custom fields one by one rather than treating the result as guaranteed. Focus on the fields that affect how the post is shown, not just how it reads. That usually means the fields that drive source links, image references, canonical information, and any date or status markers your theme or plugin uses.
If the old site used custom fields heavily, the import method matters more than the headline content. Some tools bring across the post body but flatten the metadata layer. Others keep the field keys but lose their values when the destination site does not recognize the same structure. That is why post metadata is not a detail to leave for later.
Consult a professional and compare the field set with a source such as the WordPress `wp_postmeta` reference before you assume the import is complete. A good rule is to treat metadata like inventory, but verify it against the source site rather than relying on a blanket rule.
What should I check after import?
You should check the author, comments, metadata, publish date, and post status on a sample of imported posts before you switch the new site live. A 10-post spot check is better than trusting the import screen, because the screen can say “done” while important details are missing.
Use this checklist:
- Open the post in the editor and confirm the author matches the intended user.
- Open the front end and check that the comments are attached to the correct post.
- Inspect custom fields and compare them with the old site’s `postmeta`.
- Confirm the publish date stayed the same, especially if the archive is date-sensitive.
- Check post status history where the new site or plugin exposes it, so drafts do not look like published posts.
- Review one post from each content pattern, not just the easiest one.
After that, publish dates deserve special attention because they affect archive pages, feeds, and the order readers see in category views. If the date changes by even one day, an auto blog can look out of sequence. That becomes more obvious when a site has long archive pages or content scheduled across several months.
Then, post status history is less visible, but it still matters when the site depends on editorial states. A post that moved from draft to published may need to keep that path for audit or workflow reasons. If the import does not preserve that history, the new site may only show the final state.
What mistakes cost the most?
The costliest mistake is assuming that post content equals post identity. That mistake can leave you with a page that looks complete but has the wrong author, missing comments, or empty metadata fields. Fixing it after a full migration takes far longer than checking the first few records on day one.
Next, a close second is importing users after posts instead of before them. If the author account is not there when the post lands, WordPress may assign a fallback name or force a later remap. That can create a chain of cleanup work across dozens of posts, not just one.
Another common miss is treating custom fields as optional. On an auto blog, they often carry the exact data that keeps the post useful. Losing those fields can break templates, source attribution, or display logic even if the article text itself imports fine; if the setup is complex, consult a professional and review the WordPress `wp_postmeta` reference before relying on the import.
Finally, the least visible mistake is skipping the date check because the page “looks right.” The archive then sorts the post in the wrong place, and readers notice it later when the content order no longer matches the source site. That is the sort of error that turns into a support thread two weeks after launch.
This is not the place for guesswork. If the old site uses a field, a comment thread, or an author setup that matters to the archive, preserve it deliberately or plan a cleanup pass before the new site goes live.
When is the built-in export not enough?
The built-in export is not enough when the new site must preserve complex post metadata exactly as stored on the old site. It can also fall short when you need a precise match for comment relationships, author mapping, or post status history across a large archive.
That limitation shows up fastest on sites with lots of custom fields. WordPress can move the post and still leave the destination with partial field coverage, especially if the field keys were created by plugins or theme logic. If the post still needs those fields to function, a plain export is the wrong tool by itself.
It can also fall short when the old and new sites do not share the same user list. If the author account is missing, the import can only map it to what exists on the new site. That is fine for a draft test, but it is risky for a live archive with a named byline structure.
In particular, the same warning applies to comment-heavy posts. The visible thread may import, but the internal links and ordering need verification. If the post has many replies, even a small mismatch becomes obvious to readers.
Ultimately, the right answer is not “try harder” but “check a different path.” For a straightforward move, the built-in export is enough. For a content-heavy auto blog with special fields, it is a start, not the finish line.
FAQ
Does WordPress export comments with posts?
Yes, WordPress can export comments with posts when the export includes the content those comments belong to. The important part is that the import process must keep the post relationship intact, or the comments may arrive without the right thread. A quick check on 3 to 5 posts is enough to catch a bad mapping early.
What post metadata is most likely to be lost in migration?
Custom fields are the first thing to disappear or change, especially when they are tied to plugins or theme logic. Publish dates, post status history, and author links can also shift if the import does not map them correctly. If the old post depends on `postmeta` for display or source data, that field set needs the closest review. See the WordPress `wp_postmeta` reference and the export screen documentation for the core objects involved.
Drafted with AI; not yet reviewed by a person.