How to import and export data in WordPress

WordPress is an open source blogging platform with many plugins support. You can easily use pluggins to backup & restore completely your database, but now in the tutorial series for beginner in WordPress, I will not mention about professional backup & restore because it is not necessary when your website is still using localhost.

Important: When you have purchased a WordPress Theme, and not the example content as seen in the theme demo. You can setup your purchased theme as live demo theme by importing “dummy content” (defaul contents are packaged to an .xml file). Then you can configure, customize the theme and Import content from current page on localhost to your own WordPress website (it also packaged to an .xml file). You can do this with the WordPress import and export functions. Read more to find out how to export and import a WordPress blog.

Export Data in WordPress

To export from a WordPress export file into your website. Follow these steps .

  1. Sign into your Dashboard. Click on the “Tools >> Export”
  2. Decide how much of your content you want to export. The top option is “All Content,” and it is the most popular choice.


Click “Download Export File” to create dummy content (.xml file) and download.

You should place the file in an easy to access folder, or on your desktop. You will need this file in order to import it later.


Import Data in WordPress

To import data into your WordPress website. Follow these steps:

  1. Sign into your Dashboard. Click on the “Tools >> Import” option.
  2. Choose the “WordPress” option from the list.


Tools >> Import >> WordPress option

  1. After click on WordPress you will see a popup of WordPress Importer. You need to install WordPress Importer for uploading XML file.


Now click on “Install Now” Button then activate your plugin.

  1. Then choose the dummy content (.xml file) on your computer and click on “Upload” button.


5. You will have the choice to import attachments, check the “Download and import file attachments” check-box and click on “Submit” button.



  • These functions can only Import /export contents in post/page, navigation menus, custom fields… (also Category, Tags, Comment) without plugins, themes and other settings, you can explore how to back up & restore the entire settings data in WordPress for more information.
  • Some uploads, photos and links may not be exported into your file. You may need to re-upload some of this content onto your new website.
  • If the import process is run again with the same data file after stopping midway through, it could result in duplicate data, missing data or other errors in the destination database.
  • If the .xml files that are larger and you import to a WordPress site running on the host (not localhost), it may get Timeout error. You only need to import 2, 3 times.
  • When importing data, please note “Maximum Upload Size”, which is the maximum size of files that you are allowed to upload. Depending on which space of your host large or small (nomarlly 25 – 100MB)


I very hope this tutorial helped you to know import and export data function in WordPress, you may also want to check out our guide on other instructions in this series.
See you soon in next step!!

Leave a Reply

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