Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 5 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
add comment

Your Answer

 
discard

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.