Custom Post Template

Provides a drop-down to select different templates for posts from the post edit screen. The templates replace single.php for the specified post.

Author:Simon Wheatley (profile at wordpress.org)
WordPress version required:3.4
WordPress version tested:3.4.1
Plugin version:1.5
Added to WordPress repository:27-11-2008
Last updated:14-06-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:96
Rated by:43
Plugin URI:http://wordpress.org/extend/plugins/custom-po...
Total downloads:242 750
Active installs:10 000+
plugin download
Click to start download

Provides a drop-down to select different templates for posts from the post edit screen. The templates are defined similarly to page templates, and will replace single.php for the specified post. This plugin will NOT switch the templates for the different posts in a listing page, e.g. a date or category archive, it will only affect the template used for single posts (i.e. you can choose a template which is not single.php).

Post templates, as far as this plugin is concerned, are configured similarly to page templates in that they have a particular style of PHP comment at the top of them. Each post template must contain the following, or similar, at the top:

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

First note: Page templates use "Template Name:", whereas post templates use "Template Name Posts:".

Second note: You must have the custom post template files in your theme in the same directory/folder as your index.php template file, not in a sub-directory/sub-folder.


FAQ
ChangeLog