0

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.

0

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!

  • > "do not click "Download and import file attachments" I didn't click this yet still received an error saying "Failed to import media attachment". I also received the same message during step 8 and no media was imported. – Jonny Jun 19 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.