What is Taxonomy in WordPress
A taxonomy is used in WordPress to arrange posts and custom post types together. The term ‘taxonomy’ stems from the Linnaean taxonomy technique of biological classification.
WordPress comes with two taxonomies by default: categories and tags. If you’re utilizing custom post types, you might want to use custom taxonomies as well.
Hierarchical taxonomies are also possible. That means you can develop main themes with subtopics of their own.
What are the WordPress Default Taxonomies?
WordPress’s default taxonomies are categories and tags.
The purpose of categories is to categorize your entries in a general sense. Consider these your WordPress site’s general subjects or table of contents.
A news website, for example, might contain categories for stories categorized as World News, Local News, Weather, and Sports.
Posts that do not have a category assigned to them are automatically filed in the default category. The default category on a new website is ‘Uncategorized,’ however, this can be modified.
Subcategories can be created since categories are hierarchical. We built a parent category called ‘Cameras’ and a subcategory called ‘DSLR’ in the example below.
In this lesson on how to build categories and subcategories in WordPress, we go through parent and child categories in further detail.
Tags are used to describe particular aspects of your content. Consider these to be the index words for your website. They’re keywords that concentrate on individual aspects of your content rather than broad concepts.
If you put a post in the “Book Reviews” category, for example, you may add tags like Fiction, Mystery, Stephen King, and Agatha Christie.
Tags, unlike categories, do not have a hierarchy. They aren’t even required.
The proper usage of categories and tags can help your site’s search engine optimization.
Using WordPress to Create Custom Taxonomies
Custom taxonomies allow you to fine-tune how your material is organized.
For example, if a website owner builds a custom post type named ‘Books,’ they could want to use a custom taxonomy called ‘Subjects’ to sort it.
Custom taxonomies are arranged in a hierarchy. You may construct subtopics like Adventure, Fantasy, and Romance if your main subjects are Fiction and Nonfiction.
Custom post types are used by several popular WordPress plugins to store their data.
- WooCommerce introduces a custom post type called ‘product’ to your WordPress site.
- WPForms creates a post type called ‘wpforms’ to store all of your forms.
- A new custom post type called’memberpressproduct’ has been added to MemberPress.
We hope that this post has given you a better understanding of WordPress taxonomy. You may also find relevant articles on WordPress tips, tricks, and ideas in our Additional Reading section below.