I’ve been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in the description of Taxonomies, but seems used in a manner that hints that it isn’t solely limited to a Taxonomy.
Both are described as a way to classify and group together posts. I do understand that Taxonomies are a more general form of categories, but how exactly do they relate to each other?
Is there a subtle difference I’m just not picking up on?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Taxonomies, as previously described are a collective noun for the following
-
category -
post_tag -
post_format -
link_category - custom taxonomy
The first four are built-in taxonomies, while custom taxonomies are taxonomies that are manually created by the user with register_taxonomy. Custom Taxonomies can be hierarchical (like the build-in taxonomy category) or not (like post tags)
The categories and tags that you create in the back end under the ‘Posts’ screen are in actual fact terms of the taxonomies category and post_tag
You cannot create extra terms in post_format. post_format has built-in terms like post_format_video, post_format_gallery etc. See the codex for all post formats included
EDIT
I have updated the Taxonomies page in the codex to include my diagram and the missing post_format taxonomy
Method 2
Category, Tag, Link Category and Post Formats are built in taxonomies.
From Codex
Basically, a taxonomy is a way to group things together.
The names for the different groupings in a taxonomy are called terms. Using groupings of animals as an example, we might call one group “birds”, and another group “fish”. “Fish” and “birds” are terms in our taxonomy. As an example from WordPress, a category or tag (see next section) is a term.
Method 3
Category is one of the built-in taxonomy in WordPress.
So to clear things: taxonomy is a way to group things together.
we can create custom taxonomies in WordPress just like built-in ones. For example Carscould be a taxonomy with terms like
Audi Toyota Benz Mazda
there are mainly two types of taxonomies available which are hierarchical and non hierarchical
Category is best example of hierarchical taxonomy and Tag is an example of non hierarchical taxonomy
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0
