WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 9 down vote accepted

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.

share|improve this answer
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
@byronyasgur, glad to know ;o) – brasofilo Feb 18 '13 at 18:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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