-
Notifications
You must be signed in to change notification settings - Fork 87
Description
I migrated (manually) a site from one webhost company to a different one. On the new webhost, I created a new domain and installed WP there. As part of the manual migration, I copied the wp-content folder from the old site to the new one. (both sites are on the same server)
Now, I am trying to get the posts and pages copied over. I was not aware of the built-in WP export/import features in the Tools. The export created an XML file. The importer does read the XML file and post messages that the media files exist and likely not create the posts.
Can the importer be edited to do this:?
if files does not exist in wp-content folder
then download from the original site
else raise error (and mention which post)
update links
insert post into the database
Also, it would be nice if there was a summary of the import at the end like
Imported posts: ###
Posts with errors: ### (skipped)
Total Posts found: ###
Import Completed.
The exporter should also generate a summary like
Total number of exported posts: ###
Number of posts skipped due to unpublish or in trash status: ###
total number of posts in database; ###
export completed.