Template Hierarchy

WordPress follows a strict hierarchy when searching for the correct template to use for a given query. It is very helpful to understand which template will be used for each situation. This Codex article explains the search order and has a diagram showing the search paths.

Codex: Template Hierarchy

Leave a Reply

Your email address will not be published. Required fields are marked *

*