Learn Computer Academy

WordPress Template Hierarchy Visualizer

Pick a request type, then check or uncheck files to see exactly which one WordPress would actually load.

Template Hierarchy lesson

Request Type

File Search Order

WordPress checks these files top to bottom and uses the first one that exists in the theme. index.php always exists — it's the one truly required template.

  1. 1
  2. 2
  3. 3

Curly-brace parts like {slug} or {post-type} are stand-ins WordPress fills in from the actual request — {slug} for a page named "about" becomes page-about.php.