WordPress plugin intelligence profile

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.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.4
Current version1.5
WordPress coverageTested up to WordPress 3.4
Minimum stackWP 3.4 · PHP —
Directory statusactive
Last directory update28 Nov 20178y ago
Active installations10K+Adoption metric — not a quality score
WordPress.org rating4.8 / 5 from 43 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Custom Post Template version 1.5 as active, updated 8y ago and tested up to WordPress 3.4.

Overview

About this plugin

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

e. 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:

>

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

php template file, not in a sub-directory/sub-folder.

Developers

If you want to implement the custom post templates on a custom post type, you can use the cpt_post_types filter, here’s an example below of adding the custom post template selector and metabox to the “Movie” and “Actor” custom post types. php file in your theme.

/** * Hooks the WP cpt_post_types filter * * @param array $post_types An array of post type names that the templates be used by * @return array The array of post type names that the templates be used by **/ function my_cpt_post_types( $post_types ) { $post_types[] = 'movie'; $post_types[] = 'actor'; return $post_types; } add_filter( 'cpt_post_types', 'my_cpt_post_types' );

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • post
  • template
  • theme
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.4

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.4.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.4
Minimum requirementsWordPress 3.4 · PHP not listed
Update activity28 Nov 20178y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.