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.
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.
Share Improve this question asked Mar 31, 2018 at 11:05 bobbob 2491 gold badge6 silver badges16 bronze badges 1- There seems to be a plugin for that (never tested myself though). wordpress/plugins/export-featured-images – Stefano Tombolini Commented Apr 1, 2018 at 16:05
2 Answers
Reset to default 10You can consult this answer, but the instructions are a bit unclear, so I'll clarify them myself here.
- 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/Importing_Content
- 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.
- 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.
- Once the plugin is installed, go to Tools > Export Featured Images.
- Select "post" if you want blog images
- Click export. You'll download another XML file
- On the new blog, visit the WP Importer once again.
- 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!
You can easily export the posts and pages using the export built-in function of wordpress. If you want to export the local posts, you will get in trouble, this because wordpress will import only the media files that are available online, this means that localhost
will not work.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744753507a4591740.html
评论列表(0条)