The WordPress template hierarchy

The WordPress template hierarchy is one of the most influential things in the life of theme developers. Users may need to understand it, plugins may need to interact with it, but generally it is theming that’s all about the template hierarchy.

That’s because it is the WordPress template hierarchy that determines which of the files in a theme is used at a given time. That is: the template hierarchy is the foundation upon which WordPress themers make their art.

The purpose of this article is to further elucidate this idea. We will define what the template hierarchy does, why you need to know about it to be an effective modifier of WordPress sites, and we’ll talk about how to work with it and (very briefly) how it works.


Περισσότερα εδώ: