Difference between revisions of "WordPress Template"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In WordPress, a template is a PHP file within a WordPress theme. == Description == Templates have specific file names, and have specific purposes. All templates mus...")
 
Line 6: Line 6:
  
 
All templates must include the template named <code>index.php</code>.
 
All templates must include the template named <code>index.php</code>.
 +
 +
== Template hierarchy ==
 +
 +
Templates form a hierarchy.
 +
 +
Some templates override other templates.  This varies according to which templates you use, and how you use them.
 +
 +
See [https://developer.wordpress.org/themes/basics/template-hierarchy/ Template hierarchy] @ codex.wordpress.org.
  
 
== See also ==
 
== See also ==

Revision as of 12:12, 1 October 2015

In WordPress, a template is a PHP file within a WordPress theme.

Description

Templates have specific file names, and have specific purposes.

All templates must include the template named index.php.

Template hierarchy

Templates form a hierarchy.

Some templates override other templates. This varies according to which templates you use, and how you use them.

See Template hierarchy @ codex.wordpress.org.

See also

External links