Taxonomies

A taxonomy within WordPress is a way of grouping posts together based on a select number of relationships. By default, a standard post will have two taxonomy types called Categories and Tags which are a handy way of ensuring related content on your website is easy for visitors to find. These two types of taxonomies are included in WordPress by default, but just like any other taxonomy, can be removed or changed and you can even add more if you like.

Taxonomies & Terms

The relationship between taxonomies and terms is rather simple; think of taxonomies as the ‘parent’ and terms as the ‘children’. For example, a taxonomy called ‘Recipes’ for the ‘Food’ post type could have multiple terms such as ‘Vegetarian’ or ‘Fresh’, ‘Easy Cooking’.

Another example is where you might have a post type called Reviews and a new post called ‘Best Films of The Year’. You can help define this content by having a taxonomy called ‘Films’ and create new terms such ‘Top Picks’ or ‘Film Reviews’. All this does is help define your content into smaller chunks making it much easier to find and focus on.

Vai su ↑

New Taxonomies & Terms

As of WordPress version 2.3 you can create your own taxonomies for use on your website or blog with a small amount of code. You can also create an unlimited amount of terms if you wish which can be done within the dashboard user interface once the taxonomies have been created.

Vai su ↑

Extending Taxonomies

Depending on whether your theme and plugins allow it, you can also extend the functionality of taxonomies and their terms to improve the categorisation of the content. This means that you can create taxonomy specific templates in your themes and also add new filtering options to look for posts in the dashboard too.