Skip to content

Post are not added because files in wp-content folder already exist #183

@jpowell53590

Description

@jpowell53590

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions