August 14, 2008
Export One WordPress Blog Category to Create a New Blog
Written by: JuanchitoI’ve searched high and low for a way to move just one blog category from an existing blog into a new blog. I found tons of ways and great documentation on how to move an entire blog to a new domain, but I couldn’t find anything that showed how to take one WordPress blog category and create a new blog using that category.
I found an old plugin/import that should have done the job, but hadn’t been kept updated with the latest version of WordPress and so it didn’t work for me. I also found a ton of people on the WordPress forums interested in doing the same thing, but no one offering an answer. The best they could offer was importing just the RSS feed for that category. Problem there is that then you lose all the comments, categories and tags for those posts. Comments being the real kicker for me.
Therefore, I decided to go it alone and figure out a way to do it using the only option given in the WordPress Export which was the user that created the post. My goal was:
-Export All the posts, categories, comments, tags for just one category of my blog
-Create a list of those posts that I could use to redirect traffic/google to the new location
There might be easier ways (and hopefully they’ll make this an option in the Import), but this worked for me. Also, I wouldn’t try this method unless you’re pretty good at find and replace, executing SQL queries and editing themes.
Overview of Process:
*Export Blog to Test Server
*Change Theme to Get list of Blog Post IDs/Posts for Category
*Change Author of Each Post ID to a new author
*Export posts for new author
*Import into new blog
*Create list of 301 Redirects on old blog
*Clean Up new blog DB
Read more…








