WordPress template file
From Wiki @ Karl Jones dot com
Revision as of 17:53, 5 September 2016 by Karl Jones (Talk | contribs)
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
- Templates @ codex.wordpress.org
- Template Files @ developer.wordpress.org
- Stepping Into Templates @ codex.wordpress.org