BACK
BACK
BACK
Loading...

Blog / HowTos /  What is a WordPress Taxonomy Template?

November 7, 2015 - Cathy

What is a WordPress Taxonomy Template?

Understanding WordPress taxonomy template hierarchy

The topic of categories, tags and taxonomy in WordPress is pretty confusing. To try and remove some of the confusion and make it easier to understand, we will take a look at it piece by piece:

  • Taxonomy in WordPress is a way to group posts and pages together based on related words or groups of words. WordPress comes with two main types of taxonomies that you can use out of the box:
    • Categories – Categories can be thought of as the broad areas that your website is broken into. If you consider your entire site as a single topic, categories are the different sections that your website is divided into.
    • Tags – A tag is a word or group of words specific to a post but not unique to the post.

Categories and tags properly used together make it easy to locate specific articles/posts on your website. There should be a logical line from broad topic to unique article.

wordpress taxonomy template

  • Templates are files that tell WordPress how to display different types of content on your website. When a URL is entered, WordPress determines what type of content is being requested and looks for a template that tells it how to display that content. When posts/pages fall into more than one category, as they often do, there will be more than one template that tells how to display that content. In these cases, template hierarchy takes over..
  • WordPress hierarchy determines the order in which templates are displayed. If a request is made, WordPress goes through the hierarchy starting with a very specific template and working its way through templates that are increasingly less specific. It displays the requested page with the first template that it finds. The index.php file is the last template in the hierarchy and is the default template if no others can be found. The category.php, tag.php, and taxonomy.php templates allow posts filtered by taxonomy to be treated differently from unfiltered posts or posts filtered by a different taxonomy. These files let you target specific taxonomies or specific taxonomy terms.
    • Category hierarchy
      • category-{slug}.php .
      • category-{ID}.php
      • category.php
      • archive.php
      • index.php
    • Tag hierarchy
      • tag-{slug}.php: .
      • tag-{id}.php:
      • tag.php
      • archive.php
      • index.php
    • Custom taxonomy hierarchy
      • taxonomy-{taxonomy}-{term}.php
      • taxonomy-{taxonomy}.php
      • taxonomy.php
      • archive.php
      • index.php

wordpress hierarchyUsing a custom WordPress taxonomy template

WordPress allows custom taxonomy to help organize and group information together more effectively. Sometimes it isn’t possible to organize information exactly how you would like using categories and tags. In that case you can create a custom WordPress taxonomy template. This will allow you to further categorize your content into more specific areas. In this way content can be displayed in more various and logical ways. Custom taxonomy also allows to deal with pro WordPress plugin development to handle Taxonomies without knowing the specifics about them. This means that instead of developing a custom taxonomy interface for each individual website, it is possible to design a plugin that could be used on any WordPress site, and for all taxonomies.

To enjoy all the features of your site, do not forget to update your system to WordPress 4.3.1 and see what you should be aware of.

Hire a Dedicated and Experienced Full Stack Developer from Mobilunity

If you don’t want to use or have a hard time using WordPress Taxonomy templates or are simply planning on a complex system, you would be best served by a full stack JavaScript developer! A full stack JavaScript developer is skilled and knowledgeable in all aspects of web development and its maintenance. A developer of this caliber will be able to fix the issues that you have with your WordPress and going beyond fixing bugs and further improve your website. A full stack developer is fully capable of building you a website, both frontend and backend, that would be tailored to your needs.

Here at Mobilunity, we have a pool of highly-skilled and experienced Full Stack developers that are available to address your requests. If you are looking to hire one, you might be interested in reviewing our blog about the cost of hiring a full stack Developer.

It is important to organize your custom taxonomy template, so if you need help you can always get in touch!

Request a quote

Attach File

(max file size 5MB; allowed extensions: doc, txt, pdf, docx)

Contact us Request a Quote

Your email address will not be published.

Required fields are marked *

Attach File

(max file size 5MB; allowed extensions: doc, txt, pdf, docx)

subscribe to newsletter

Your email address will not be published.

Required fields are marked *

Ask a Question

Your email address will not be published.

Required fields are marked *

Sorry, this page isn't quite ready yet

redirecting to the old site

5

Mobilunity

cannot account for customer alterations, as the site may reflect changes made after the project was completed.

5