WordPress Blog Import and Export

Posted on December 18, 2007 by


February 23, 2010 – This post was published 2 years prior to the entries appearing in the new support documentation we now have at wordpress.com. It has been edited to update the content, however, before undertaking the process of moving blog contents it’s recommended that you read the support documentation that applies including the export, import, and Links (Blogroll) import and export entries.

Exporting blog contents
There is an import and export function for this purpose in your dashboard
-> Dashboard -> Manage -> Export -> WordPress

(1) You can export the contents of one blog (posts, pages, comments, custom fields, categories, and tags) in the form of an xml file to your desktop and, then you can import the xml file into the another blog site.

When you click the button WordPress will create an XML file for you to save to your computer. This format, which we call WordPress eXtended RSS or WXR, will contain your posts, comments, custom fields, and categories. Once you’ve saved the download file, you can use the Import function on another WordPress blog to import it.

Exporting Links
(2) Update: “There are two options when importing links. You can import links from an existing blog, or you can import links from a file you have saved to your computer.” http://en.support.wordpress.com/blogroll/import-export-links/

Import from a file saved to your own computer -  The blogroll links must be separately exported and re-categorized. That means you will have to re-assign them to each link once they are moved but it’s better than copying and pasting those links yet again.

Blogroll i.e. Links note 1: The OPML format doesn’t support categories even though they’ll be there when you do the export. Assign the major category for them when you go to import them as you’re going to have to reassign them afterwards anyway.

Blogroll i.e. Links note 2: If you had links, you can export them out at http://mydomain.com/wp-links-opml.php (You must change “my domain” to your own url, of course.) Open that exported blogroll (links) xml file in a plain text editor like NotePad and save as a *.txt file. The blogroll (links) xml file needs to be saved as a *.txt doc in a plain text editor like Notepad. This is because if you were to save it as a text rich text document using for example Microsoft Wordpad or Word (horrors!) those programs would add in all kinds of garbage like fonts and unusual html formatting code that mess will it up for what we’re doing here.

Importing
There is an import and export function for this purpose in your dashboard
-> Dashboard -> Manage -> Import -> WordPress

Howdy! Upload your WordPress eXtended RSS (WXR) file and we’ll import the posts, comments, custom fields, and categories into this blog.

Choose a WordPress WXR file to upload, then click Upload file and import.
Choose a file from your computer: (Maximum size: 3m)
Upload File and import.

Blogroll i.e. Links Import – Be sure you are using a plain text editor and then import the *.txt file you saved into your other blog at Dashboard -> Blogroll -> Import Links.