The Ultimate Guide to WordPress Page Templates

The Ultimate Guide to WordPress Page Templates

One of the templates that I always include in any theme I code is the page.php file.

This is the template that WordPress will use for creating static pages. It’s useful to have a dedicated page.php file instead of falling back to index.php because you’ll need your pages to display slightly different content from single posts.

For example in a post you’ll generally include metadata such as the post date and the categories that the post has been added to, but in a page you won’t.

WordPress also lets you take page templates a step further, by creating custom page templates. You can use these to create multiple page templates that you select from…

Read Full Article