WordPress Template hierarchy

From Wiki @ Karl Jones dot com
Revision as of 08:16, 5 October 2016 by Karl Jones (Talk | contribs) (Description)

Jump to: navigation, search

In WordPress, the Template hierarchy is the hierarchal relationship between WordPress Templates.

The hierarchy determines which Templates is used to display a particular set of content.

Description

Every Theme must have a Template file named index.php.

Most Themes use additional Template files which take precedence over index.php.

Commonly used Template files include:

  • single.php
  • page.php
  • category.php

See also

External links