Page templates with custom posts

I have found many articles on the issue of page templates with posts, but mostly old, outdated, and incomplete pieces. I have yet to find any one definitive tutorial on how to go from a-z and get all of the existing page templates usable in posts… specifically in the case of custom posts (custom post types ui - plugin).

Can anyone provide a link to, or a step by step process to allow the page attributes selection box on custom post types to provide the default page templates which are currently available in X?

While above is the best possible solution giving the best options, my core need is to remove the header, title section, and footer from all custom posts created using the Custom Post Type UI plugin.

Appreciate any advice.
Thanks,
Tony

Hi Tony,

Thanks for reaching out.
There are no such options to use the current X theme page template in your Custom Post Type. It seems that you are using the Custom Post Type UI plugin to create the templates, I would like to recommend you to contact the plugin author in case you are facing any issues with it.

If you are trying to build a Custom Page Template for your custom post type, you need to know how you can create a Page Template. Please go through the following URLs on how you can create that.

  1. https://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/
  2. https://premium.wpmudev.org/blog/creating-custom-page-templates-in-wordpress/

After you create the template, you can specify it to be added only for the specific custom post type by adding the following code just under the Template Name: tag.

Template Name: Your Template Name
Template Post Type: Custom Post Type

So this template will only visible to the posts.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.