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 found the export tool particularly useful for moving posts from sites to site, and even once wrote an extension for Elgg to export its content into wordpress export format for migration to BuddyPress.

However, I now find I'd like to export just the posts of a single category, so that I can put those posts on a different wordpress install whilst leaving the other posts on the original site. Given the number of posts on the site, I'd rather not have to export everything and manually edit the xml file.

Is there a way I can export posts of just one category into a standard wordpress import/export xml file?

The site being imported to is on the same multisite install, with shared user base, so post and comment attribution should be preserved.

share|improve this question
    
Be aware that plugin recommendations are off topic per the faq and it is hard to read "is there a tool" in any other way. –  s_ha_dum Jun 12 '13 at 14:15
    
@s_ha_dum Noted. Do you suggest I reword the question or withdraw it? –  AntonChanning Jun 12 '13 at 14:18
    
A minor rewording should do it, but it is still a pretty broad question. Have you done research? Do you have any code that you have been working on, working or not? –  s_ha_dum Jun 12 '13 at 14:19

1 Answer 1

up vote 2 down vote accepted

The default exporter will do this. Instead of selecting "All Content", choose "Post" and then a category.

enter image description here

share|improve this answer
    
This is exactly what I was looking for. For some reason I didn't realise the form would expand if I selected 'Posts' so I wrongly assumed it just meant 'all posts'. –  AntonChanning Jul 25 '13 at 13:56
    
sorry to bring this up, but how can rearrange /reorder the exported .xml file before i import it again? –  alex Oct 23 '13 at 16:59
    
@alex, not easily and not without considerable risk. The exported file is just a flat text file. It isn't manipulable, though you could build a script to open it, parse it, reorder it, and resave it. –  s_ha_dum Oct 23 '13 at 17: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.