O'Reilly logo

WordPress 2.8 Themes Cookbook by Lee Jordan, Nick Ohrn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a simple page template

The first thing that we'll cover in this chapter is creating a simple page template. This recipe shows the specific markup that you need to include in a PHP file in order to make sure that WordPress recognizes it as a page template. In addition, we'll demonstrate how to choose a page template when creating a page. When you get to the end of this recipe, you'll be fully equipped to create and use new page templates with your custom themes.

Getting ready

To properly use the techniques in this recipe, you'll need to be working with a theme that you previously acquired or developed. If you haven't started developing a custom theme yet, I recommend using the Thematic theme. It can be freely downloaded from the WordPress.org ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required