Export / Import posts between sites
-
Hello,
I migrate a website to a new one. I need to export / import posts from the old site to the new one. To export posts, I use the native WordPress functionnality (XML file).
To import posts on the new webiste, I use the WordPress Importer by wordpressdotorg. At the start of the import process, I select the two options: Import Attachments and Content Options.
Import goes well but links to images are broken in the new site. For example with the sema post on each site:
Old site:
https://www.stbruno-evian.com/sortie-des-4e-opale-et-saphir-les-larmes-du-glacier/New site:
https://staging.stbruno-evian.com/2025/11/20/sortie-des-4e-opale-et-saphir-les-larmes-du-glacier/The URLs of the image is the same on each web site: /wp-content/uploads/2025/11/IMG_0035-1024×768.jpeg
What I notice is that – on the FTP – image files do not have the same name.
On the new website, the text “scaled-1” is added to the file name.
I’ve followed steps in the article (adding code to function file and plugin) but result is the same.
What is weird is that when I manualy add an image to the WP Media folder, the text “scaled-1” do not appear. FTP files.
Also, when importing posts, an error is showing. This is because I do not use the Folder plugin on the new website (I’ve also tested to activate it and re-import but result os the same).
Best regards,
Michaël
You must be logged in to reply to this topic.