blogging 102 | The Hidden Wealth in Wordpress Page Templates

The Hidden Wealth in Wordpress Page Templates

October 3, 2008 by Blogboy  
Filed under Theme

Reading time: 2 – 4 minutes

One of the least used and most powerful features of wordpress is the page template. The page template to make a long story short integrates non standard coding into your blog seemlessly. It is probably used most often as an archive page in free themes, but most of those free templates forget to tell their users how to use the template and therefore it goes unused. They can be used for so many other things than just an archive page though.

Darren Rowse of ProBlogger makes extensive use of page templates. If you look at the beautifully designed landing page you will find a lot of information all packed neatly into one space. If this were a standard freebie theme you wouldn’t be able to see much more than this. It is my esitmation that his home page is home.php rather than the standard index.php. (for more information see the the wordpress codex on) By making use of the home.php as a landing page in your theme you can then make a blog template that will display all of the posts in a nice chronological order. This is especially nice on multiple author blogs like ProBlogger. I know some of you are thinking isn’t this just an archive page? The answer is no. A good archive page should give you little more than a quick excerpt of the post. My preference for an archive page is nothing more a link to the posts.

Here are a few more places where I make use of page templates since I am having a hard time actually finding other good uses of them at the moment. This page makes use of the Pandora Internet Radio Widgets on a single page rather than a sidebar present throughout my blog. The contact form on the Free Online Music Articles site makes use of the Secure and Accessible PHP Contact Form by Mike Cherim & Mike Jolley. Most of the other pages on this blog utilize my standard article directory information with the automatic pulls from the blog’s information. It saves needing to write these over and over again for different sites utilizing that or similar template. Plop the info into a template and it puts in all of the correct information. Another popular or should be popular page template is the sitemap. If you look at it there is a sextion for my pages, not all of which are listed on the landing page header. You get a list of my categories with how many posts are in each category. Then there is a listing of the ten latest posts in each category. If there were mutlpile authors to this blog you would find a listing of the ten latest posts from each author as well. Notice, this page template has absoluetely nothing to do with your google xml sitemap.

In the end if you are capable of doing simple theme editing you can create a wealth of useful pages not possible in your standard blog layout. If you aren’t so handy with the coding, try looking for themes that provide you with more template oportunities. Not only wiil they create a better reading experience many of the them will improve your SEO.

2 Responses to “The Hidden Wealth in Wordpress Page Templates”

  1. Michael Woo says:

    yea templates is a must – there are so many free and available ones out in the market that is really good

  2. blogboy says:

    @Michael Woo -
    I don’t think you are understanding the difference between a page template and a wordpress theme. A theme contains all the details of how your site looks and functions including page templates. At least it should have page templates many lesser themes simply ignore them with a host of other wordpress codex options. This theme is a work in progress but if you look at the listed pages, blog, archive, sitemap, contact you will see these are not your normal wordpress pages, but pages designed around specific templates.

Leave a Reply

CommentLuv Enabled