Plugin Directory

Custom Post Template

Author: Simon Wheatley

This plugin requires PHP5 (see Other Notes > PHP4 for more).

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.

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
*/
?>

Note that page templates use "Template Name:", whereas post templates use "Template Name Posts:".

Plugin initially produced on behalf of Words & Pictures.

Is this plugin lacking a feature you want? I'm happy to discuss ideas, or to accept offers of feature sponsorship: contact me and we can have a chat.

Any issues: contact me.

Tags: , ,