Skip to content

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.

Alex Denning

3 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
In bed with Wordpress #3 « Best Wordpress Theme
March 12, 2010 10:47 pm

[…] Single Post Templates Made Easy for WordPress | WPShout.com – On the parlé la semaine dernière des pages d’articles qui étaient uniques sur certains blogs. Et bien voici une technique flow le faire facilement sur votre blog WordPress… […]

Art directed blog design › Binary Moon
January 9, 2010 9:49 am

[…] that relates to the style of the post making his site quite unique. Alex Denning recently brought a post template plugin that does the same thing but obviously you will need to create the templates to use with it – these […]

Art Direction › Binary Moon
November 11, 2009 7:58 am

[…] that relates to the style of the post making his site quite unique. Alex Denning recently brought a post template plugin that does the same thing but obviously you will need to create the templates to use with it – these […]

Or start the conversation in our Facebook group for WordPress professionals. Find answers, share tips, and get help from other WordPress experts. Join now (it’s free)!

Most Searched Articles

Best JavaScript Libraries and Frameworks: Try These 14 in 2024

In this post, we look at the best JavaScript libraries and frameworks to try out this year. Why? Well, with JavaScript being available in every web browser, this makes it the most accessible programming language of ...

25 Best Free WordPress Themes (Responsive, Mobile-Ready, Beautiful)

If you're looking for only the best free WordPress themes in the market for this year, then you're in the right place. We have more than enough such themes for you right ...

12 Best WordPress Hosting Providers of 2024 Compared and Tested

Looking for the best WordPress hosting that you can actually afford? We did the testing for you. Here are 10+ best hosts on the market ...

Handpicked Articles

How to Make a WordPress Website: Ultimate Guide for All Users – Beginners, Intermediate, Advanced

Many people wonder how to make a WordPress website. They’ve heard about WordPress, its incredible popularity, excellent features and designs, and now they want to join the pack and build a WordPress website of their own. So, where does one get ...

How to Start an Ecommerce Business: Ultimate Guide for 2024

Is this going to be the year you learn how to start an eCommerce business from scratch? You’re certainly in the right place! This guide will give you a roadmap to getting from 0 to a fully functional eCommerce business. ...