Are you testing a new Wordpress theme or plugin that you don’t want to release to the world until you’re completely ready?  Test your Wordpress blog offline by setting up a simple test site using actual content from your live blog site using the import and export features of Wordpress.

blank

Setup

If you aren’t familiar with the process of setting up your own offline webserver with PHP and mySQL, you can check out some free resources on XAMPP, which according to the website:

“XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.”

Find the XAMPP software at: http://www.apachefriends.org/en/xampp.html

blank

Export Your Live Blog Posts

Tools MenuYour Wordpress blog (version 2.x) has a built-in feature that allows you to export your entire list of posts into an XML format that can then be read into another blog, which you will already have running offline.

On your live blog site:

  • Open the Tools menu
  • Click on “Export”
  • Click the “Download Export File” button and save the XML file

Export Options

blank

Import Your Exported Blog Posts

Now, log into your offline site and import the file:

  • Open the Tools menu
  • Click on “Import”

You will see a list of options like the following (click to view full size):

Import Options
To work with the above exported file, choose “Wordpress” from the list and continue below:

  • Browse for the location of your exported file from the export steps above.
  • You will have the option to download and import all of the linked images as well, which is a good thing to do ONLY if you have a small set of posts that you’re importing, otherwise this step could take quite a while to complete.

blank

That’s it! Hopefully, you will now have a copy of your production blogs posts in a non-production blog site running on your local PC or laptop which you can then use to try out new code and themes without affecting the users who are currently on your site.  Happy Blogging!!!