{"id":2900,"date":"2018-03-07T10:44:48","date_gmt":"2018-03-07T10:44:48","guid":{"rendered":"https:\/\/docs.contentviewspro.com\/?p=2900"},"modified":"2023-12-28T07:54:18","modified_gmt":"2023-12-28T07:54:18","password":"","slug":"convert-categories-custom-taxonomy","status":"publish","type":"docs","link":"https:\/\/contentviewspro.com\/documentation\/article\/convert-categories-custom-taxonomy\/","title":{"rendered":"Convert some categories to taxonomy"},"content":{"rendered":"<p>Category and Tag are two default WordPress taxonomies which help you to group posts together easily. You also can create custom taxonomy to group your contents.<\/p>\n<p>If you want to <ins>convert some categories (or tags) to a new taxonomy<\/ins>. Here are steps to do:<\/p>\n<h2>I. Register a new taxonomy<\/h2>\n<p>Firstly, you need to <ins>register a new taxonomy<\/ins>.<br \/>\nYou can do that easily with this plugin <a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-ui\/\" target=\"_blank\" rel=\"noopener\">Custom Post Type UI<\/a>.<br \/>\nOr you also can use the register_taxonomy() function.<\/p>\n<h2>II. Convert specific categories to new taxonomy<\/h2>\n<p>You can choose one of two ways below to convert:<\/p>\n<ol style=\"margin-left: 30px;\">\n<li>\n<h3>Convert automatically<\/h3>\n<p>Please install and use this plugin <a href=\"https:\/\/wordpress.org\/plugins\/taxonomy-switcher\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Taxonomy Switcher<\/a>.<br \/>\nThis is the recommended way to convert quickly, easily, and safety.<\/li>\n<li>\n<h3>Convert manually<\/h3>\n<p>Or you can convert manually with below steps:<\/li>\n<\/ol>\n<ul>\n<li>\n<h4>Add terms to the new taxonomy<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2912\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-add-new-term-to-WordPress-taxonomy.png\" alt=\"CVP - add a new term to WordPress taxonomy\" width=\"825\" height=\"322\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-add-new-term-to-WordPress-taxonomy.png 825w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-add-new-term-to-WordPress-taxonomy-300x117.png 300w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-add-new-term-to-WordPress-taxonomy-768x300.png 768w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/li>\n<li>\n<h4>Move posts from a category to new taxonomy term<\/h4>\n<p>The quickest way is:<\/p>\n<p>+ In WordPress admin Posts page, select a specific category, then click &#8220;Filter&#8221; button to show all matching posts: <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2923\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-filter-by-category-in-Posts-page.png\" alt=\"CVP - filter by category in Posts page\" width=\"794\" height=\"160\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-filter-by-category-in-Posts-page.png 794w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-filter-by-category-in-Posts-page-300x60.png 300w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-filter-by-category-in-Posts-page-768x155.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>+ Select the top checkbox, select the &#8220;Edit&#8221; option in the &#8220;Bulk Actions&#8221; dropdown, then click &#8220;Apply&#8221; button:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2927\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-actions-edit-posts-WordPress.png\" alt=\"CVP - bulk actions edit posts WordPress\" width=\"614\" height=\"187\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-actions-edit-posts-WordPress.png 614w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-actions-edit-posts-WordPress-300x91.png 300w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/p>\n<p>+ Select the desired term of the new taxonomy:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2929\" src=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-update-categories-of-WordPress-posts.png\" alt=\"CVP - bulk update categories of WordPress posts\" width=\"794\" height=\"377\" srcset=\"https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-update-categories-of-WordPress-posts.png 794w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-update-categories-of-WordPress-posts-300x142.png 300w, https:\/\/contentviewspro.com\/documentation\/wp-content\/uploads\/2018\/03\/CVP-bulk-update-categories-of-WordPress-posts-768x365.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>then click the &#8220;Update&#8221; button.<\/p>\n<blockquote><p>Repeat this step for each category you want to convert.<\/p><\/blockquote>\n<\/li>\n<li>\n<h4>Remove converted categories (optionally)<\/h4>\n<p>After above steps, you might remove categories which are already converted to (replaced by) new taxonomy.<\/li>\n<\/ul>\n<p>Best regards,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Category and Tag are two default WordPress taxonomies which help you to group posts together easily. You also can create custom taxonomy to group your contents. If you want to convert some categories (or tags) to a new taxonomy. Here are steps to do: I. Register a new taxonomy Firstly, you need to register a &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/contentviewspro.com\/documentation\/article\/convert-categories-custom-taxonomy\/\"> <span class=\"screen-reader-text\">Convert some categories to taxonomy<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-2900","docs","type-docs","status-publish","hentry","doc_category-how-to"],"year_month":"2026-09","word_count":225,"total_views":"2","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin1","author_nicename":"admin1","author_url":"https:\/\/contentviewspro.com\/documentation\/author\/admin1\/"},"doc_category_info":[{"term_name":"How To","term_url":"https:\/\/contentviewspro.com\/documentation\/cats\/how-to\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2900","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/comments?post=2900"}],"version-history":[{"count":3,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2900\/revisions"}],"predecessor-version":[{"id":5467,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/docs\/2900\/revisions\/5467"}],"wp:attachment":[{"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/media?parent=2900"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=2900"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentviewspro.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=2900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}