I’d like to move a set of posts from one wordpress site to another.

WordPress has a native export tool that allows posts to be exported. But this tool doesn’t preserve featured images.

I’m aware that the WordPress Importer plugin provides an option for importing the featured images. But over the year that I’ve used this option it has never worked for me.

I’ve found a couple of plugins in the repository. But they are old, untested on later versions of wordpress and I can’t get them to work with the current version.

Ideally I’d like to import both the featured image and any other media attached to posts.

2 Answers
2

You can consult this answer, but the instructions are a bit unclear, so I’ll clarify them myself here.

  1. On the old blog, export the posts using the standard WordPress import/export functionality. If you’re unfamiliar with that, see this link for more information: https://codex.wordpress.org/Importing_Content
  2. On the new blog, use the WP Importer to import the XML file generated when you exported the posts from the old blog, but do not click “Download and import file attachments”. You’ll be doing that in a later step. Import the posts.
  3. On the old blog download Export Featured Images. As of this writing the plugin DOES work with WP 5.1.1. I just tested it.
  4. Once the plugin is installed, go to Tools > Export Featured Images.
  5. Select “post” if you want blog images
  6. Click export. You’ll download another XML file
  7. On the new blog, visit the WP Importer once again.
  8. This time, click “Download and import file attachments”, then click “Submit”

This will assign all the featured images to the existing posts.

If you download and import file attachments in the first import, it will stop the second import from working.

Good luck!

Leave a Reply

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