Exporting and Importing WordPress posts pages media and more

It is possible to Import and export content from one WordPress site to another.

Exporting content

Go to Tools -> Export.
Select the content to be exported.
All content, Posts, Pages or Media.
Click the Download Export File. An xml file will be downloaded to your computer.

WordPress Export content from web site
WordPress Export content from web site.

Importing content

At the bottom of the page below the title: WordPress click Install Now. This will install the WordPress Importer plugin.

WordPress Import content to web site
WordPress Import content to web site.

After the installation click Run Importer.

It moves on to another screen to where you will need to upload a WordPress eXtended RSS (WXR) file.
Click Choose file to brows your computer for the xml file to be imported.

Next step is to Assign Authors from the content that is being imported as well as selecting to download and import file attachments.

WordPress Import content to web site Assign Authors and Import Attachments
WordPress Import content to web site Assign Authors and Import Attachments.

It moves to another screen letting you know how the download and import went. An example can be that it failed at importing media.

Check the site and see if the content was imported.

When I imported it failed adding the media.

A few plugins that imports and exports

WP All Import plugin
I use the backup plugin Duplicator.
All in One WP Migration plugin
Backup WordPress plugin

I have on occasion needed to download all the media in the Media Library and have used this plugin: Export Media Library plugin or Media download.

Additional link.
The WordPress Importer Github repository.

Share the article:

Leave a Reply

Your email address will not be published. Required fields are marked *