Skip to content
Let’s Talk
Guides

WordPress Import and Export Tools: Moving Content Between Sites Safely

How the WordPress import and export tools work, what they include and leave out, and how to move posts, pages and media between sites with fewer surprises.

By the Prism Works Studio team · · 8 min read

Key takeaways

  • The built-in export creates a file containing content such as posts, pages, comments, categories and tags, not a complete copy of your site.
  • Settings, themes, plugins and many customisations are not carried across, so an export is not a substitute for a backup.
  • Test every import on a staging site first, and check media, authors, links and layout before relying on the result.

At some point, many WordPress site owners need to move content from one place to another. You might be merging two sites, starting again on a fresh install, moving a blog on to a new business website, or copying a set of pages to a staging site. WordPress includes tools for this under the Tools menu, and they are useful, but they are also often misunderstood.

The biggest misconception is that export creates a full copy of your website. It does not. This guide explains what the tools do, what they leave out, how to use them step by step, and how to deal with the problems you are most likely to meet. Screens can vary a little between WordPress versions, so use the steps as a guide.

What the WordPress export tool does

The export tool creates a single file containing your site content in a format WordPress can read, known as WXR. It is an XML file, which means it is structured text. You can download it to your computer and later upload it to another WordPress site using the import tool.

The export can typically include:

  • Posts and pages, including their titles, content, status and dates.
  • Comments attached to those posts and pages.
  • Categories, tags and other taxonomy terms.
  • Custom post types registered on the site.
  • Navigation menu items in many cases.
  • References to media items, including their web addresses.
  • Custom fields stored with the content.

Notice the wording on media. The export file generally holds details of your images and documents, including where they are stored, but it does not contain the files themselves. That distinction causes many of the issues described later.

What the export does not include

An export file is content, not a site. As a rule, it does not carry over:

  • Your theme files or theme customisations held outside the content.
  • Plugins and many of their settings.
  • Site settings such as your title, permalink structure or reading options.
  • User accounts and passwords, although author names are referenced.
  • Data held in custom database tables, which some forms, shop tools and booking systems use.
  • Widgets in some setups.

For this reason, do not rely on an export as your safety net. If your site was damaged or lost, a content export would leave you rebuilding much of the rest by hand. A proper backup covers both the files and the database. Our backup and recovery plan guide explains what good coverage looks like.

Likewise, if you want to move the whole site to a new host, the export tool is usually the wrong choice. A site migration copies everything. Our guide on changing hosting without downtime covers that process.

When these tools are the right choice

The tools work well when you want the content but not the rest of the site. Good situations include:

  • Merging a separate blog into your main business site.
  • Starting afresh with a new theme and a clean install, while keeping your articles.
  • Moving one category of posts or a set of pages to a new site.
  • Bringing a set of custom post type entries across to a matching site.
  • Keeping a dated content archive in addition to your regular backups.

They are less suitable when pages depend heavily on a particular page builder, custom fields or shop data, because those details may not display properly unless the destination site is set up in the same way.

How to export your content

  1. Log in with an administrator account and go to Tools, then Export.
  2. Choose what to export. You can select all content, or limit it to posts, pages, media or another content type.
  3. If you choose posts or pages, use any filters offered. These may include category, author, date range and status.
  4. Click the download button to save the file to your computer.
  5. Store the file somewhere sensible with a clear name that includes the site and the date.

Exporting does not change your live site. It only creates a copy of the data, so this step is low risk. Still, the file may include draft content, comments and commenter details, which can include personal data such as names and email addresses. Store and share it with care, and take advice if you are unsure about your data protection responsibilities.

Before you export, consider a tidy-up. There is little value in moving old drafts, spam comments and unused categories to a fresh site. Our content audit guide can help you decide what is worth keeping.

How to import content into another site

  1. Prepare the destination site. Install the theme and any tools the content relies on, and register matching custom post types where needed.
  2. Take a backup of the destination site. An import adds to what is there, and undoing it can be awkward.
  3. Go to Tools, then Import.
  4. Find WordPress in the list. If the importer is not already installed, you will be offered the option to install it.
  5. Run the importer and upload your export file.
  6. Choose how to handle authors. You can assign content to an existing user, or create a new one where offered.
  7. Tick the option to download and import file attachments if you want media brought across.
  8. Submit, then wait for the process to finish without closing the page.

The importer usually tries to avoid creating duplicates by checking for content with matching details, but do not assume it will catch everything. If you run the same import repeatedly or the content has been edited, check the result closely.

Common problems and how to fix them

Images are missing after import

This is the classic issue. The importer fetches each file from the original site, using the address recorded in the export. If the old site is offline, password protected, blocking requests or running slowly, some files may not arrive. Ideally, keep the old site online and publicly reachable until the import is complete and checked.

Images inserted into content may also still point to the old site after import. Check a sample of pages, including the page source if you are comfortable doing so. If those addresses still point to the old domain, the images will disappear when that site closes. Our guide to media library organisation may be useful once you have your files in place.

The file is too large to upload

Your hosting may limit upload sizes, and the limit is shown on the import screen. Options include exporting smaller batches by content type, category or date, or asking your host whether the limit can be raised. Splitting the work into batches also makes errors easier to spot.

The import stops part way through

Long imports can hit server time limits, especially when many images are being downloaded. Try running smaller batches. Before trying again, check what did arrive so you can work out what is missing.

Layouts look wrong

Content built with blocks generally transfers well, particularly when it uses core blocks. Content built with a page builder or custom blocks needs the same tools active on the destination site. Even then, details such as reusable sections or global styles may not come across. Our guide to synced patterns explains one such example, where content lives separately from the page it appears on.

Internal links point to the old site

Links typed into your content will keep their original addresses. If the domain changed, those links may take visitors to the old site or nowhere at all. Plan to update them, and test a sample after you finish.

Addresses have changed

Slugs normally come across, but final addresses depend on the permalink settings of the new site. Conflicts can also add a number to the end of a slug. If an address has changed from the original, you will probably need redirects to preserve existing links. Our guide to website redirects explains how to approach this.

Keeping search visibility during a content move

When published content moves to a new domain or address, it pays to consider search engines from the start. Keep a list of every old address and where it is going, then set up redirects from each one. Avoid leaving the same content live on both sites for long, as this can confuse search engines about which version to show.

A staging site should also be kept out of search results, so your test copy does not get indexed. If this is part of a larger relaunch, our SEO migration checklist gives a more thorough list of checks.

A sensible checklist after an import

Once the import finishes, work through these checks before you treat the job as done.

  • Compare post and page counts between the old site and the new one.
  • Open a sample of older and newer content, on desktop and mobile.
  • Check that featured images and inline images load, and from which domain.
  • Confirm that authors, dates, categories and tags look right.
  • Check that drafts have stayed as drafts and nothing private has been published.
  • Test internal links, menus and any forms embedded in content.
  • Review comments, and remove any that should not have moved.
  • Remove any sample content from the fresh install, such as the default post and page.

The default WordPress sample content is easy to overlook. Our guide to trash and restoring content explains how deleted items are handled in case you remove something by mistake.

When to get help

A small blog moving between two simple sites is often manageable on your own. Consider getting support if the site has a large volume of content, relies on custom fields or shop data, needs lots of redirects, or earns a meaningful share of its enquiries through search.

Prism Works Studio helps UK businesses plan and carry out content moves and rebuilds on WordPress. Our website and ecommerce development team can review what you have and suggest a sensible route, or you can contact us to talk it through.

FAQs

Is a WordPress export the same as a backup?

No. An export covers content and leaves out themes, plugins, settings and more. A backup should cover your files and database, so keep regular backups regardless.

Does the export file contain my images?

Generally not. It records details of media items and their addresses, and the importer can then fetch them from the original site if that site can still be reached.

Will importing overwrite my existing content?

An import normally adds content and does not replace existing items, though matches may be skipped. Always take a backup first, as results depend on your content.

Can I import content from Wix or another platform?

The tools listed under Import may include options for some other systems, but support varies. For one common example, see our guide to moving from Wix to WordPress.

Can I export just one category?

Usually yes. Choose Posts on the export screen and filter by category. Some related items may need separate attention, so check the result on a test site.

Can I export online shop products this way?

Products can appear as a content type, but shop data is more complex, and orders in particular may be stored differently. Treat shop moves as a separate project and test thoroughly.

Free consultation

Let’s Talk About Growing Your Business Online.

Book a free, no-obligation 30-minute discovery call with one of our senior digital strategists.