Taxonomies in WordPress, order everything in its place

Types of taxonomies in WordPress

In WordPress there are taxonomies of Categories and the tags which are the usual taxonomic forms to classify contents.

Additionally, it is considered Publication Formats (post format), a type of taxonomy, although they are generally more unknown to the normal WordPress user. They are used by a theme to present posts in a certain format and style. The Post Formats feature provides a standardized list of available formats for all themes that support the feature.

We can see four types of taxonomies in WordPress built in out of the box:

  • Categories (hierarchical)
  • Labels (multifaceted)
  • Links (multifaceted)
  • Navigation menu (hierarchical)

taxonomy Category category allows you to group entries by sorting them into various categories. These categories can be displayed using links of the type /category/name. They are hierarchical in nature, being able to nest one on top of the other.

taxonomy post_tag it is similar to ‘Categories’ but more open. Tags can be created at the time of writing a post (for example). They can be viewed on the site with links such as /tag/name. Posts or entries usually have many tags, and are usually displayed with the posts or in a tag cloud. They are not hierarchical, they maintain their independence.

taxonomy link categories link_category Allows you to categorize links. They are used internally, for organizational reasons, and are not usually displayed on the site. They are interesting to define groups of links to display in the sidebars or the footer of the website.

Taxonomies are stored in the following database tables:

  • wp_terms: stores all terms.
  • wp_term_taxonomy: places the term in a taxonomy.
  • wp_term_relationships: Relates the taxonomy to an object (for example, the category to the post).
Loading Facebook Comments ...
Loading Disqus Comments ...