Do you wish to have to transform your WordPress classes into customized taxonomies? Classes are one of the crucial two default taxonomies that mean you can kind your content material. Alternatively, WordPress additionally permits you to create and use customized taxonomies. On this article, we will be able to display you the way to simply convert WordPress classes into customized taxonomies.

How to Convert WordPress Categories to Custom Taxonomies

Why and When Do You Wish to Convert Classes to Customized Taxonomies

Categories and tags are the 2 default taxonomies in WordPress. Taxonomies are used to kind and arrange content material into other subjects.

Except for the default taxonomies, WordPress additionally permits you to create custom taxonomies which you’ll use with present post types or with custom post types. For extra in this subject, see our article on when do you need a custom post type or taxonomy in WordPress.

As your website online develop, chances are you’ll discover a want to convert your classes right into a customized taxonomy. As an example, let’s say that you’ve got a class referred to as subjects with numerous sub-categories. It could be time-consuming to edit each and every publish and report it below your new customized taxonomy.

Wouldn’t or not it’s great if you want to bulk convert some or your entire classes to the brand new customized taxonomy?

Let’s check out how you’ll simply convert classes to customized taxonomies with out manually modifying each and every publish.

Changing WordPress Classes to Customized Taxonomies

Very first thing you wish to have to do is set up and turn on Taxonomy Switcher plugin. For extra main points, see our step-by-step information on how to install a WordPress plugin.

Upon activation, you wish to have to consult with Gear » Taxonomy Switcher web page for your WordPress admin house to transform classes to customized taxonomies.

Taxonomy Switcher

In this web page, you’ll choose the taxonomies you wish to have to transform. For this educational, we will be able to choose ‘Classes’ because the taxonomy we need to transfer from, and ‘Subjects’ because the customized taxonomy we need to transfer to.

Select taxonomies

If you wish to convert all classes to a customized taxonomy, then you’ll cross forward and click on at the ‘Transfer Taxonomies’ button.

The plugin will convert all classes for your decided on customized taxonomy. You’re going to see a luck message like this:

Successfully switched taxonomies

Should you simply need to convert explicit classes, then it is important to upload the IDs of the ones classes subsequent to ‘Comma separated record of time period ids to change’ box. See our article on the way to find category IDs in WordPress for extra main points.

Skip categories

Moreover, if you wish to skip kid classes of a selected class, then you’ll upload the IDs of the dad or mum class subsequent to ‘Prohibit taxonomy transfer for kid phrases of a selected dad or mum’ possibility.

Don’t overlook to click on at the ‘Transfer Taxonomy’ button to avoid wasting your adjustments.

Surroundings Up Redirects from Class to Customized Taxonomy

After you turn classes to a customized taxonomy, the class archive web page will now display a 404 error page. That is not anything to be nervous about in case your website online isn’t are living but.

Alternatively in case your website online is are living, then search engines like google and yahoo can have already crawled your class pages and listed them. Which means the ones pages can seem in seek effects and customers coming from search engines like google and yahoo will see a 404 error web page.

To mend this, you wish to have to redirect customers to the brand new taxonomy web page for each and every class.

Thankfully, there is a straightforward repair for that.

First, it is important to set up and turn on the Redirection plugin. For extra main points, see our step-by-step information on how to install a WordPress plugin.

Upon activation, you wish to have to consult with Gear » Redirection web page. Within the Supply URL box, you wish to have to go into /class/.* and within the Goal URL box you wish to have to go into your customized taxonomy slug, e.g. /subject/$1

Set up redirects

Subsequent, you wish to have test the field subsequent to ‘Regex’ possibility, after which click on on ‘Upload Redirect’ button.

This redirect will now ship all class archive visitors for your customized taxonomy. Simplest use this, in case you don’t need to use classes in any respect.

If you wish to redirect particular person classes to a customized taxonomy web page, then see our amateur’s information on setting up redirects in WordPress with detailed step-by-step directions.

We are hoping this newsletter helped you learn to convert WordPress classes to customized taxonomies. You might also need to see our information on how to style individual categories differently in WordPress to taste your customized taxonomy templates.

Should you appreciated this newsletter, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally to find us on Twitter and Facebook.

The publish How to Convert WordPress Categories to Custom Taxonomies gave the impression first on WPBeginner.

WordPress Maintenance

[ continue ]