Ever needed to migrate content from one WordPress site to another? Fear not, fortunately WordPress has in-built import and export facilities.
The process goes as follows:
- Log in to the original site you want to export data from.
- Go to Tools > Export.
- Arrange Filters as needed, by default WP exports all the content.
- Hit the ‘Download Export File’ button.
When you click the button WordPress will create an XML file for you to save to your computer.
This format, which is called WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.
- Log in to your second site, to which you want to import the content.
- Go to Tools > Import.
- Select ‘WordPress’ as the platform to use.
- WordPress will prompt you to install the Import plugin.
- Intsall and activate the plugin, you will be taken back to the Import screen.
- Use the ‘Browse’ button to select the XML file generated earlier on.
- Hit the ‘Upload file and import’ button.
In the next screen you can tick the box which says ‘Download and import file attachments’.
- File import will commence, that’s all!
The nice thing is that WordPress also gives you the option of importing things like attachments from the original website, even though those are not in the XML file. Obviously the original site has to be online as WordPress will need to connect to the server and download files from there.
This process is ideal when migrating from a development to production server, but remember the blog you are importing from needs to be online if you want to import attachments.