Single Post Templates Made Easy

Single Post Templates Made Easy

I had the visual pleasure of reading Ben Gillbanks’ blog, BinaryMoon the other day. Whilst Ben’s blog is usually looking pretty darn good, using WordPress as an advanced blogging platform, the other day it looked particularly good. Why? Ben was using unique page templates for specific blog posts.

normal-vs

I immediately thought to myself: “I need to know how to do that.” So I found out. Looks like Elemental is using some rather like Nathan Rice’s post template plugin which adds a simple dropdown to the post editor offering different post templates.

As themes and plugins start to merge more and more these days, this is yet another example of the merging that’s taking place – to integrate post templates into a theme is really easy:- download and unzip the plugin, open the php file and copy and paste into your functions.php file (at the very bottom, after closing php tag; you’ll want to tidy it up later one you’ve decided you’ll keep it). Next, you need to create the page template – create a duplicate of your single.php file but add the following to the very top of the file:

<?php
/*
Single Post Template: Template Name
Description: This part is optional, but helpful for describing the Post Template
*/
?>

Upload it and check out the post editor. With that, you’re done! You can then get styling to your heart’s content and create a really unique experience for each post you make to your blog.

You should follow me on Twitter

Related Posts

Add Columns to Your Posts!

The Death of the Boring Blog Post – Easily Add Columns to Any WordPress Post


Display Quotes From A Random Post

How To: Display Quotes From A Random Post in WordPress


Best Practices for Creating Unique Blog Posts

Best Practices for Creating Unique Blog Posts


WPShift

One Comment - Add Yours!

  • Ben wrote on November 10, 2009 at 10:28 am | Permalink

    Hey Alex – thanks for featuring me. I am actually going to be doing a post on Art Directed blog posts with a bit more info on how I did it.
    .-= Ben“s last blog ..Coraline =-.

Post a Comment

Please take not of the comment policy.

Your email is never published nor shared.

*
*
User Gravatar