Exporting just posts of a specific category

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.

Read More

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.

Related posts

2 comments

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

    enter image description here

  2. Trick for Custom-Post-Types:

    As CPTs don’t show those options, that post radio checkbox shows, you will need to modify the input from Browser>Inspect :

    <input type="radio" name="content" value="CUSTOM_POST_TYPE_HEREE">

    enter image description here

Comments are closed.