How can I export and then import posts with featured images?

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 Comment