Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I exported all posts of a WordPress blog. Then I imported the xml file to another WordPress blog. When I tried to search few posts in the new blog, which are in the old blog, I did not find anything. When I opened the xml file, I found that it's incomplete. The file contains 14,226 lines of code. The size of the file is 1.2 MB. I used default tool of WordPress to export and import.

How to export complete list of posts and then import the same?

I have another lame idea to do this, if I don't get any good solution. I can delete the posts which are exported and then export again. But this is a stupid time taking process.

share|improve this question

1 Answer

To copy a WordPress install from A to B, do an SQL dump on site A, and restore it to site B. Then search and replace the DB to swap the old URLs for the new URLs. Make sure to copy over the uploads folder in wp-content.

To do the search replace, consider using a tool such as this:

http://interconnectit.com/124/search-and-replace-for-wordpress-databases/

share|improve this answer
and/or this: wordpress.org/extend/plugins/search-regex – its_me Jun 20 '12 at 16:14

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.