Make Page Templates Available for Custom Post Types

If you are using a plugin that generates custom post types or if you have created your own custom post types and you want all of the page templates that come with TotalPress to be available for those custom post types follow this quick and easy tutorial. This tutorial requires that you use a child theme.

After you get your child theme installed and activated, go into wp-content/themes/totalpress/ and copy the folder called page-templates. Copy this folder into the child theme folder.

Now open up one of the files, i.e. content-sidebar-sidebar.php. AT the top of the file you will see this:

/**
 * Template Name: Content | Sidebar | Sidebar
 * Template Post Type: post, page, aside, audio, chat, gallery, image, link, quote, status, video
 */

In order to make this template available for custom post types you will need to change it to this:

/**
 * Template Name: Content | Sidebar | Sidebar
 * Template Post Type: post, page, aside, audio, chat, gallery, image, link, quote, status, video, custom-post-type-name-goes-here
 */

Make sure you save your work. Now in this example, the Content | Sidebar | Sidebar template will be available for your custom post type. Do this for every template you would like to use.