{"id":74900,"date":"2012-03-26T12:00:15","date_gmt":"2012-03-26T16:00:15","guid":{"rendered":"http:\/\/wpmu.org\/?p=74900"},"modified":"2013-07-01T16:28:32","modified_gmt":"2013-07-01T20:28:32","slug":"export-one-category-or-posts-from-different-categories-with-wordpress","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/export-one-category-or-posts-from-different-categories-with-wordpress\/","title":{"rendered":"Export One Category or Posts from Different Categories with WordPress"},"content":{"rendered":"<p>If you\u2019re somewhat familiar with WordPress, then you probably know that you can export the contents of your site and import them to a new site.<\/p>\n<p>But what if you don\u2019t want to export your entire site? What if you only want to export one or two categories? Or even more complicated, what if you want to export select posts from a number of different categories?<\/p>\n<p>It\u2019s not as hard as it might seem.<\/p>\n<h2><strong>How to Export Single Categories<\/strong><\/h2>\n<p>If you\u2019d like to export a category or two, then WordPress is already set up for this.<\/p>\n<p>Simply go to the export function in your Tools menu. (Tools &gt; Export)<\/p>\n<p>You will have an option to select \u201cPosts.\u201d When you do this, more options appear, including the option to export a single category. Simply select your category, and then download your export file.<\/p>\n<p><a rel=\"lightbox[74900]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/export-one-category-or-posts-from-different-categories-with-wordpress\/exporting-one-category\/\" rel=\"attachment wp-att-74904\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-74904\" title=\"Exporting One Category\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/03\/Exporting-One-Category.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"634\" height=\"690\" \/><\/a><\/p>\n<p>On your new site, go to your import function and upload the export file you just downloaded. (Tools &gt; Import.)<\/p>\n<p>Note: When you import a file for the first time, you will need to choose the system you\u2019re importing from (in this case it\u2019s WordPress), and then you will be prompted to install an importer plugin. It\u2019s pretty straight-forward from there.<\/p>\n<p><a rel=\"lightbox[74900]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/export-one-category-or-posts-from-different-categories-with-wordpress\/importing\/\" rel=\"attachment wp-att-74905\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-74905\" title=\"importing\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/03\/importing.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"634\" height=\"668\" \/><\/a><\/p>\n<h2><strong>Import More than One Category<\/strong><\/h2>\n<p>If you need to export a number of different categories (but still not the entire site), then just go through the same process above as many times as you need to. By default, the system will name each export file the same even though they are different categories. You will want to give unique names to the files before saving them so that they don\u2019t get over-written.<\/p>\n<h2><strong>How to Export Individual Posts from Different Categories<\/strong><\/h2>\n<p>What if you have a situation where you\u2019d like to move two posts from Category A, three posts from Category B, five posts from Category C, etc.?<\/p>\n<p>The answer to this problem is to make a new category (e.g. \u201cMove\u201d), and then go through and add all the posts that you\u2019d like to move to that new category. (If you\u2019d like to have the same old categories on your new site, then leave your posts in their old categories as well.)<\/p>\n<p>After that, simply export the new category (in our example, the \u201cMove\u201d category) and then import it to your other site. Once your posts are on your new site, you can then simply delete the newly created category (the \u201cMove\u201d category). When you import your posts, their original categories will be imported as well.<\/p>\n<h2><strong>Remember to Redirect<\/strong><\/h2>\n<p>Remember to use 301 redirects for the posts you\u2019ve moved from one site to another. This will let the search engines know that you\u2019ve moved the posts. There are \u201c301 redirection\u201d plugins to help you with this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you only need to export parts of your site, then this is your answer.<\/p>\n","protected":false},"author":84404,"featured_media":205667,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[152,9751],"tutorials_categories":[],"class_list":["post-74900","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-categories","tag-import-export"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/74900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=74900"}],"version-history":[{"count":2,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/74900\/revisions"}],"predecessor-version":[{"id":205668,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/74900\/revisions\/205668"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/205667"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=74900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=74900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=74900"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=74900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}