I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this or will I have to get access to my LDE from outside or upload the entire installation which I would rather avoid?


When I use WordPress Import in this cases, this is what I do:

  • Export the XML in localhost.

  • Open the exported file in a text editor.

  • Search and replace http://localhost/wp-content/uploads/ for http://example.com/custom-temporary-folder/.

  • Upload the uploads folder via FTP to the custom-temporary-folder.

  • Perform the Import in example.com using the modified XML file.

  • very clever ... will give it a go. – byronyasgur Feb 18 '13 at 18:20
  • ... worked perfect ... great technique! – byronyasgur Feb 18 '13 at 18:38
  • Do you need to tick the checkbox "Download and import image attachments"? – Flimm Aug 29 '19 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.