Top

Give Individual Posts a Unique Style: WordPress Custom Post Template Plugin

November 7, 2011

Be Different

With the introduction of format types in WordPress, the ability to post “Link” posts or “Gallery” posts , etc. became something you could do out of the box. But if you’ve ever wanted to give different posts a style of your own, then the Custom Post Template plugin makes it easy.

Quick Instructions:

1. After installing and activating the plugin, you will need to create a new post template.

2. On your server, go to your theme’s folder.

3. Create a new file and name it whatever you like followed by .php. In my case, I named it “test” (test.php).

4. Find the file in your theme for your single post pages (most likely named single.php).

5. Open that and copy it.

6. Paste that code into the new file you’ve just made (test.php).

7. At the top of that file (before the code you’ve just pasted), put the following:

<?php
/*
Template Name Posts: Test
*/
?>

 

You can name it whatever you like. I have named mine “Test.”

8. Change the rest of the file in whatever way you like to make it unique and save it. For a quick test, I simply added some text.

Creating a New Post

When you create a new post, you should now see a new box near the bottom of the right-hand column labeled “Post Template.” This will provide a pull-down menu of all the different post templates you’ve made.

Choose whichever you like and make your post. Your new post should now be styled in the manner you determined in your post template.

(Download the plugin here.)

(Thanks to pshutterbug for the image.)

 

Because this plugin/widget is provided free of charge, I simply ask you to link back to Pressography.com in a post on your blog, or from one of your sites. It doesn't need to be anything fancy - just a note saying that you're using it, and whether or not you like it. However, there is no requirement that you do this, you're free to use the plugin regardless.

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.