WP Custom Post Template Redux

0

This plugin lets you add the custom post templates in your WordPress custom post type. You can easily apply your custom post template in custom post type posts, just as you would do t

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tags
This plugin is outdated and might not be supported anymore.

Description

  • This plugin lets you add the custom post templates in your WordPress custom post type. You can easily apply your custom post template in custom post type posts, just as you would do the same for page templates.

  • The templates are defined similarly to page templates, and if selected will replace single-cpt-slug.php (see template hierarchy https://developer.wordpress.org/themes/basics/template-hierarchy/) for the specified post.

  • Admin can use default setting for the custom post type plugin by simply clicking on default setting button.

Implementation notes:

  • Page templates use, in the comments at the top of the file “Template Name:”, whereas to use this plugin’s custom post templates use “WP Post Template: my-post-type-slug” — you can combine page templates and custom post type templates by just adding the applicable comments to the PHP file.

  • CPT templates use “WP Post Type:” plus the custom post type slug, e.g. “WP Post Type: my-fun-post-type” you can use a single template for multiple post types – if you leave it blank it will be available to all post types, which will maintain compatibility with WP Custom Post Template 1.0.

  • You must have store 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.

Features

  • Select custom post type where you need to show the post template.

  • Select default setting to show post template in your theme default post type.

  • You can add Advanced Custom Fields field groups based on the Custom Post Template chosen