WordPress Theme Development


WordPress Links


Research & Documentation


R&D 04: WordPress Template Hierarchy System


About the WordPress Template Hierarchy System

The WordPress template hierarchy system is used to determine which Page Template is assigned to each Page. The hierarchy is divided into six interconnected branches, one for each of the six primary types of Pages:

For Archive Pages, the hierarchy and filename formats are the following:

The hierarchy for Archive Pages.

For Singular Pages, Site Front Pages, and Blog Posts Index Pages, the hierarchy and filename formats are the following:

The hierarchy for Singular Pages, Site Front Pages, and Blog Posts Index Pages.

For Error 404 Pages, the hierarchy and filename formats are the following:

The hierarchy for Error 404 Pages.

For Search Results Pages, the hierarchy and filename formats are the following:

The hierarchy for Search Results Pages.

Grand Summary

This page contains information about the WordPress template hierarchy system.