Converting WordPress categories to custom taxonomies

How to Transform WordPress Classes to Personalized Taxonomies


Do you want to convert your WordPress types into custom made taxonomies?

Classes are 1 of the two default taxonomies that support you kind your material. WordPress also permits you to create and use custom made taxonomies.

In this post, we will show you how to simply change WordPress classes to custom made taxonomies.

Converting WordPress categories to custom taxonomies

Why and When Do You Need to have to Convert Groups into Tailor made Taxonomies?

A taxonomy enables you to manage groups of posts and custom article styles on your WordPress web page. By default, WordPress comes with two pre-made taxonomies: categories and tags.

Nevertheless, you can also produce customized taxonomies with WordPress, which can be utilised with present or custom made article sorts.

As your WordPress blog site grows, you may well have to have to transform your categories into a custom made taxonomy mainly because it can be too much to handle to file and retain track of each individual article in a class with diverse subcategories.

Employing custom taxonomies for tagging will allow for a lot more exact and specific classifications and far better content material organization.

For example, if you have a recipe web site, then generating types for cuisine form, nutritional limits, and meal style can be a bit confusing.

Preview of categories and subcategories

Even so, by generating a customized taxonomy for each of these subjects, you can make written content organization less complicated.

Custom made taxonomies can also assistance strengthen your Search engine optimization rankings by giving you the adaptability to use extra precise and qualified taxonomy terms.

Owning reported that, let’s choose a appear at how you can conveniently change classes into personalized taxonomies.

How to Change WordPress Groups to Customized Taxonomies

Initial, you will need to have to install and activate the Taxonomy Switcher plugin. For a lot more thorough recommendations, you may perhaps want to see our stage-by-stage guideline on how to install a WordPress plugin.

Upon activation, head around to the Equipment » Taxonomy Switcher page from the WordPress admin sidebar to convert categories to personalized taxonomies.

As soon as you are there, you require to pick the ‘Categories’ alternative from the ‘Taxonomy to switch from’ dropdown menu.

This indicates that we will be converting a classification into a tailor made taxonomy.

Choose categories option from the Taxonomy to switch from dropdown menu

Up coming, choose the personalized taxonomy that you want the categories to switch into from the ‘Taxonomy to change to’ dropdown menu.

For instance, if you have a class for nutritional restrictions and you want to change to a taxonomy of the very same identify, then you can decide on the ‘Dietary Restrictions’ choice from the dropdown menu.

If you do not know how to make a custom made taxonomy, then you may possibly want to see our tutorial on how to develop a personalized taxonomy in WordPress.

Choose your custom taxonomy from the dropdown menu

If you want to transform all the types on your WordPress website into this precise tailor made taxonomy, then basically click on the ‘Switch Taxonomies’ button.

Nevertheless, if you just want to change singular or many types into this taxonomy, then you will need to have to increase the IDs of individuals categories into the ‘Comma separated record of term ids to switch’ field.

Add category ID

To obtain a group id, you will require to visit the Posts » Groups webpage from the WordPress dashboard and hover your mouse more than the group of your option.

The class edit URL will now appear in a popup box at the bottom left corner of your screen.

From listed here, you can easily obtain your category ID, as it is the range that arrives immediately after ‘category&tag_ID=’ and before ‘&post_type’ in the URL.

For more recommendations, see our tutorial on how to come across category IDs in WordPress.

Attain category ID

After you have observed the IDs for groups, head back again to the ‘Taxonomy Switcher’ site.

Next, only insert the IDs for all the classes that you want to convert into a distinct taxonomy. Maintain in intellect that if you incorporate extra than one class ID, then you will have to individual them making use of commas.

Type category IDs in the field

Some of the types in WordPress also have subcategories (kid classes).

Nonetheless, if you want to skip the youngster types, then you can type the parent class next to the ‘Limit taxonomy swap for kid phrases of a particular parent’ choice. This way, only the guardian class will be switched to a taxonomy.

Last but not least, click the ‘Switch Taxonomy’ button to transform your WordPress category to a customized taxonomy.

Type parent category

You will now see the taxonomy that you have made along with the default taxonomies in the Posts menu tab in the WordPress sidebar.

Upon clicking on the customized taxonomy, you will be taken to a new web page, wherever you can effortlessly include phrases for the taxonomy by typing in a title and slug.

Add a term to the dietary restrictions taxonomy

At the time you have finished that, just click the ‘Add New’ button at the bottom to build a new taxonomy time period.

Now check out your WordPress block editor by opening up a new or current publish/web site.

Here, you will discover that the category you switched to taxonomy is now displayed in the block panel on the right corner of the screen. From in this article, you can now conveniently add new conditions or use present types for your WordPress blog article.

Custom taxonomy preview

How to Established Up Redirects From Group to Custom Taxonomy

Just after you turn just one of your groups into a tailor made taxonomy, the class archive website page will now exhibit a 404 error. This is absolutely nothing to be fearful about if your web page is not dwell but.

Nonetheless, if your site is are living, then look for engines could have presently crawled your class pages and indexed them. This indicates that those internet pages can seem in lookup benefits, and consumers coming from search engines will see a 404 error webpage.

To repair this, you need to redirect people to the new taxonomy page for each and every group.

To do this, you will need to have to put in and activate the All in One Search engine optimization for WordPress plugin. For far more particulars, see our beginner’s information on how to put in a WordPress plugin.

All in One SEO

AIOSEO is the most effective WordPress Web optimization plugin on the industry. It will come with a highly effective redirection supervisor addon that can make it pretty effortless to discover broken back links and fix them employing 301 redirections.

Be aware: AIOSEO also has a cost-free version. Having said that, you will require the pro version for this tutorial to unlock the 301 redirection element.

On activation, you will need to configure AIOSEO for your site. For additional in depth directions, make sure you refer to our guideline on how to set up All in A person Search engine marketing effectively.

After you have performed that, head about to the All in One particular Website positioning » Redirects web site from the WordPress admin sidebar.

In this article, you will see a prompt inquiring you to activate the redirection manager. Go ahead and click on the ‘Activate Redirects’ button.

Activate AIOSEO Redirects

The Redirects site will now be shown on your screen.

From below, merely include /category/.* into the ‘Source URL’ subject.

Once you do that, simply click the equipment icon in the field to open some more settings for the supply URL. From listed here, verify the ‘Regex’ option.

Immediately after that, enter your custom made taxonomy slug, e.g. /dietary_restrictions/1 into the ‘Target URL’ area.

Add the source and target URL

Upcoming, make sure that ‘301 Moved Permanently’ is chosen as the redirect alternative from the dropdown menu.

Finally, click on the ‘Add Redirect’ button in the proper corner.

Choose 301 as the redirect type

Upon creation, the redirect you designed will be exhibited at the base of the site.

From here, you can generally toggle the change to ‘Inactive’ if you want to disable it.

Disable the redirect by toggling the switch

This redirect will now send out all your class archive traffic to your tailor made taxonomy.

Having said that, we advise applying this approach only if you don’t want to use types at all.

If you want to redirect individual types to a personalized taxonomy web site, then you may possibly want to see our beginner’s guidebook on environment up redirects in WordPress.

We hope this article helped you find out how to convert WordPress types to custom made taxonomies. You could also want to see our information on how to design unique types differently in WordPress and our specialist picks for the most effective conditional logic plugins for WordPress.

If you preferred this report, then be sure to subscribe to our YouTube Channel for WordPress video clip tutorials. You can also obtain us on Twitter and Fb.