O'Reilly logo

WordPress Theme Design by Tessa Blakeley Silver

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

Template Hierarchy

A&;&;fter the work we've done on our theme, you've probably noticed that certain WordPress template pages will override other template pages. Not being aware of what standard file names can override other file names within your template hierarchy can cause problems troubleshooting your template.

Essentially, you can have fourteen different default page templates in your WordPress theme, not including your style.css sheet or includes such as header.php, sidebar.php, and searchform.php. You can have more template pages than that if you take advantage of WordPress's capability for individual custom page, category, and tag templates.

For instance, if you've created a category whose ID is '4', and then created a template page ...

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