WordPress.org

Ready to get started?Download WordPress

Plugin Directory

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.

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.

Tags: , ,

Requires: 3.4 or higher
Compatible up to: 3.4.2
Last Updated: 2012-6-14
Downloads: 144,777

Ratings

4 stars
4.7 out of 5 stars

Support

0 of 2 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1 0,1,0
100,4,4
7,14,1
36,14,5 0,1,0 100,1,1
100,1,1 43,7,3 50,2,1
100,1,1 86,7,6
75,4,3
100,1,1
100,3,3 100,1,1
0,1,0
40,5,2
100,3,3
0,1,0
50,2,1
100,1,1 100,1,1
100,2,2
100,4,4 85,13,11
0,1,0 100,6,6
100,8,8 0,1,0
100,4,4
0,1,0 100,2,2
89,9,8
100,13,13
100,1,1
88,8,7
100,1,1
100,1,1
100,3,3
100,2,2