Do you desire to convert your WordPress categories right into custom taxonomies? Categories are among both default taxonomies that assist you arrange your web content. However, WordPress additionally enables you to develop and also make use of custom taxonomies. In this write-up, we will certainly reveal you how to conveniently convert WordPress categories right into custom taxonomies.
Why and also When Do You Need to Convert Categories to Custom Taxonomies
Categories and also tags are both default taxonomies inWordPress Taxonomies are made use of to type and also arrange web content right into various subjects.
Apart from the default taxonomies, WordPress additionally enables you to develop custom taxonomies which you can make use of with existing article kinds or with custom article kinds. For much more on this subject, see our write-up on when do you require a custom article kind or taxonomy inWordPress
As your web site expand, you may discover a requirement to convert your categories right into a custom taxonomy. For instance, allow’s claim that you have actually a classification called subjects with a great deal of sub-categories. It would certainly be taxing to modify each article and also submit it under your brand-new custom taxonomy.
Wouldn’ t it behave if you could mass convert some or every one of your categories to the brand-new custom taxonomy?
Let’s have a look at how you can conveniently convert categories to custom taxonomies without by hand editing and enhancing each article.
Converting WordPress Categories to Custom Taxonomies
First point you require to do is mount and also trigger Taxonomy Switcher plugin. For even more information, see our detailed overview on how to mount a WordPress plugin.
Upon activation, you require to go to Tools” Taxonomy Switcher web page in your WordPress admin location to convert categories to custom taxonomies.
On this web page, you can pick the taxonomies you desire to convert. For this tutorial, we will certainly pick ‘Categories’ as the taxonomy we desire to button from, and also ‘Topics’ as the custom taxonomy we desire to buttonto
If you desire to convert all categories to a custom taxonomy, after that you can go on and also click the ‘Switch Taxonomies’ switch.
The plugin will certainly convert all categories to your chosen custom taxonomy. You will certainly see a success message such as this:
If you simply desire to convert certain categories, after that you will certainly require to include the IDs of those categories following to ‘Comma separated list of term ids to switch’ area. See our write-up on how to discover group IDs in WordPress for even more information.
Additionally, if you desire to miss kid categories of a details group, after that you can include the IDs of the moms and dad group following to ‘Limit taxonomy switch for child terms of a specific parent’ alternative.
Don’ t neglect to click the ‘Switch Taxonomy’ switch to conserve your adjustments.
Setting Up Redirects from Category to Custom Taxonomy
After you change categories to a custom taxonomy, the group archive web page will certainly currently reveal a 404 mistake web page. This is absolutely nothing to be bothered with if your web site is not live yet.
However if your web site is online, after that online search engine might have currently crept your group web pages and also indexed them. This implies that those web pages can show up in search results page and also customers originating from online search engine will certainly see a 404 mistake web page.
To solution this, you require to redirect customers to the brand-new taxonomy web page for every group.
Luckily, there is a very easy solution for that.
First, you will certainly require to mount and also trigger the Redirection plugin. For even more information, see our detailed overview on how to mount a WordPress plugin.
Upon activation, you require to go to Tools” Redirection web page. In the Source URL area, you require to go into / group/. * and also in the Target URL area you require to enter your custom taxonomy slug, e.g. / subject/$ 1
Next, you require examine package following to ‘Regex’ alternative, and after that click ‘Add Redirect’ switch.
This redirect will certainly currently send out all group archive website traffic to your custom taxonomy. Only utilize this, if you do not desire to make use of categories in any way.
If you desire to reroute private categories to a custom taxonomy web page, after that see our novice’s overview on establishing redirects in WordPress with in-depth detailed directions.
We wish this write-up assisted you find out how to convert WordPress categories to custom taxonomies. You might additionally desire to see our overview on how to design private categories in a different way in WordPress to design your custom taxonomy layouts.