Difference between revisions of "WordPress template file"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
Line 20: Line 20:
  
 
See [https://developer.wordpress.org/themes/basics/template-hierarchy/ Template hierarchy] @ codex.wordpress.org.
 
See [https://developer.wordpress.org/themes/basics/template-hierarchy/ Template hierarchy] @ codex.wordpress.org.
 
 
 
 
 
 
 
  
 
== See also ==
 
== See also ==

Revision as of 18:53, 5 September 2016

In WordPress, a template file is a PHP document which controls how your WordPress site will be displayed on the web.

Description

Template files belong to WordPress themes.

Template files have specific file names, and each file has a specific purpose.

All themes must include the template file named index.php.

Template files draw information from your WordPress MySQL database and generate the HTML code which is sent to the web browser.

Template hierarchy

Templates form a hierarchy.

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

All themes must include the template file named index.php. Additional template files override index.php (and each other).

See Template hierarchy @ codex.wordpress.org.

See also

External links