Categories, tags, and taxonomies are all related and can be easily confused.
We’ll use the example of building a theme for a recipe website to help break down categories, tags, and taxonomies.
In our recipe website, the categories would be Breakfast, Lunch, Dinner, Appetizers, Soups, Salads, Sides, and Desserts. All recipes will fit within those categories, but users might want to search for something specific like chocolate desserts or ginger chicken dinners.
Chocolate, ginger, and chicken are all examples of tags. They are another level of specificity that provides meaning to the user.
Lastly, there are taxonomies. In reality, categories and tags are examples of default taxonomies which simply are a way to organize content. Taxonomies are the method of classifying content and data in WordPress. When you use a taxonomy you’re grouping similar things together. The taxonomy refers to the sum of those groups. As with Post Types, there are a number of default taxonomies, and you can also create your own.
Recipes are normally organized by category and tag, but there are some other helpful ways to break the recipes down to be more user friendly. For example, the recipe website might want an easy way to display recipes by cook time. A custom taxonomy of cook time with 0-30 min, 30-min to an hour, 1 to 2 hours, 2+ hours would be a great breakdown. Additionally, cook method such as grill, oven, stove, refrigerator, etc would be another example of a custom taxonomy that would be relevant for the site. There could also be a custom taxonomy for how spicy the recipe is and then a rating from 1-5 on spiciness.
The default taxonomies in WordPress are:
- categories: a hierarchical taxonomy that organizes content in the post Post Type
- tags: a non-hierarchical taxonomy that organizes content in the post Post Type
- post formats: a method for creating formats for your posts. You can learn more about these on the Post Formats page.