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.

Have you noticed WPShout loads super-fast? That's because the site is running on the super-amazing WPEngine hosting.

Fed up of shared hosts that don't work? Give them a try.

About the author

Hello, I'm Alex! WPShout is my collection of WordPress tutorials which I started 4 years ago, just before my 16th birthday. If you need someone to make you WordPress screencasts or documentation for your product or service, get in touch — I'll be able to help you out. You should also follow me on Twitter :)

4 Comments

  • 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 =-.