Beat the Price Increase! $6.89 .com sale 468x60
Thesis Theme for WordPress:  Options Galore and a Helpful Support Community

Custom WordPress Page Template

by Mr.EBD on December 8, 2007


Custom WordPress Page Template

Individual Pages can be set to use a specific custom Page Template (a PHP template file, e.g. snarfer.php) you create within your Theme (see Creating your own Page Templates below on how to create a custom template). This new Page Template will then override the default page.php Page Template included with your Theme. See What Template is used to Display a Particular Page?, below, to find out exactly which Template will be used. But read what follows first, so you understand the answer :)

WordPress can be configured to use different Page Templates for different Pages. Toward the bottom of the Write->Write Page administration panel (or on the sidebar, depending on which version of WordPress you are using) is a drop-down labeled “Page Template”. From there you can select which Template will be used when displaying this particular Page. NOTE: In order to access the Page Template selector, there must be at least one custom Page Template available in the active theme (see Creating your own Page Templates below to learn how to create one). [edit] Default Theme Page Templates

The Default theme contains three Page Templates for your use:

* page.php – Default Page Template: displays Page content
* archives.php – ignores Page content and instead displays a list of Archives by Month and Archives by Subject (by Category)
* links.php – ignores Page content and instead displays your links using get_links_list

Previous post:

Next post: