Export and Import Blogposts In WordPress

Export and Import Blogposts In WordPress Plays from YouTube

A free, step-by-step tutorial by Ferdy. Watch it right here or on YouTube.

Related: Learn more about WordPress

How to export and import blog posts in WordPress

In this tutorial I show you how to copy blog posts from one WordPress website to another. You can move all your posts at once, or only the posts from a certain category or a certain author. In my example I had 76 blog posts on one website and only 5 on the other, and I wanted all of them on the new website, including the images.

The good news: you do not need a paid plugin for this. WordPress has an export and import tool built in.

Good to know: I recorded this video in 2019. The WordPress dashboard may look a little different today, but the Tools, Export and Tools, Import menus still work in the same way.

What you need

  • Admin access to the old website (the one with the posts)
  • Admin access to the new website (where the posts should go)
  • The free WordPress Importer, which WordPress installs for you

Step 1: Export your posts

  1. Log in to the old website and go to Tools, Export.
  2. Choose what you want to export. You can choose all content (pages, posts, templates and media), but I only want the posts, so I select Posts.
  3. If you want, filter the posts. You can pick one category (for example only the fashion posts) or all posts from one author. I want everything, so I leave it on All.
  4. Click Download Export File. WordPress saves a file to your downloads folder.

Step 2: Import the posts on the new website

  1. Log in to the new website and go to Tools, Import.
  2. Scroll down to WordPress (import posts, pages, comments and so on) and click Install Now. This installs the importer plugin.
  3. Click Run Importer, choose the file you just downloaded and click Upload file and import.
  4. Assign the posts to an author on the new website. I picked my own user.
  5. Tick Download and import file attachments, so images inside your posts come along too.
  6. Click Submit.

When I opened the blog page on the new website, all the posts were there. But the featured images were missing. That is why you need step 3.

Step 3: Export and import the media

  1. Go back to the old website, to Tools, Export.
  2. This time select Media. You can set a date range if you only need recent files. I export everything.
  3. Click Download Export File.
  4. On the new website go to Tools, Import, click Run Importer and choose this second file.
  5. Assign it to the same author, tick Download and import file attachments again and click Submit.

This step can take a bit longer, because WordPress has to copy all the images. After that, the blog page shows the posts with their images.

Tips if images are still missing

  • Sometimes a featured image does not connect to its post. It happened to me once in the five times I did this. Open the post with Edit Post and set the featured image again.
  • The way the posts look on the new website depends on that website’s theme and blog settings, not on the import. You may need to change how much of each post is shown on the blog page.
  • Make a backup of the new website before a big import. My backup tutorial shows how.

Frequently asked questions

Can I export only one category of blog posts?

Yes. In Tools, Export, select Posts and pick the category you want. You can also filter by author.

Do I need a plugin to import posts?

You need the free WordPress Importer, but you do not have to search for it. Go to Tools, Import and click Install Now under WordPress.

Why are my images missing after the import?

Featured images live in the media library. Export the media from the old website as a separate file and import it on the new one, with “Download and import file attachments” ticked. If one image still does not show, set it again in the post.

Can I move a whole website this way?

This method moves content such as posts, pages and media. It does not copy your theme, plugins or settings. To move a complete website, see how to transfer your website to a new hosting provider. To build a new website from scratch, follow my WordPress tutorial for beginners.

Leave your comment

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

Never miss
a tutorial

Every tutorial lives on YouTube. Subscribe and never miss a new one.

Black Friday A full year of Hostinger web hosting + free domain for about $30 with coupon code FERDY1 year hosting + free domain: about $30 with code FERDY Ends Dec 14 Get the deal Ad