WordPress Templates

Below you can find the most important WordPress templates and how the template hierarchy uses them. As an example, a found front-page.php is used before of a page.php:

Static frontpage

  • front-page.php
  • page.php
  • index.php

Frontpage showing the latest posts

  • home.php
  • index.php

Generic pages

  • Page template assignet to a page
  • page-{slug}.php
  • page-{id}.php
  • page.php
  • index.php

Post

  • single-{post-type}-{slug}.php
  • single-{post-type}.php
  • single.php
  • singular.php
  • index.php

Category

  • category-{slug}.php
  • category-{id}.php
  • category.php
  • archive.php
  • index.php

Tags

  • tag-{slug}.php
  • tag-{id}.php
  • tag.php
  • archive.php
  • index.php

Search Results

  • search.php
  • index.php

Additional Information

Additional information you can find in the WordPress Theme Handbook.