Does WordPress Import/Export tool actually exports media (images) as well?

In addition, you can import attachment by checking the “Download and import file attachments” option.

(source)

This means, if you use the official WordPress Importer plugin, it will read the media URL from the file, download that file and finally upload it to your new install.

When your old site is offline, eg. taken offline after malware infection, you won’t be able to import any media files this way.

If you have backups, you can try to play that in (media related db tables + wp-content/uploads/ folder). But you’ll need to take very close looks, as not to back up the previous infection as well.

Leave a Comment