An experienced Senior Front End Web Developer

WordPress Template Hierarchy Diagram

WordPress HierarchyWordPress uses templates in a hierarchical manner. It falls back onto other template files if you haven’t specifically defined ones in your theme. This is a great system, but sometimes, as with customised loop flow logic with hooks and filters, it can be a little difficult to maintain a complete overview in your head!

Thankfully, Chip Bennett has created an excellent flow diagram showing the WordPress template hierarchy flow. Not only this but it shows the default PHP conditionals used to select template files and the CSS classes applied. A useful resource to bookmark.

If you liked this post…
The best way to thank me would be by saving yourself money and moving your web hosting to Orland Media!

Comment on this: