Change public to true. Else if not to be public then I’m not sure you can use or need a template. If you do need some sort of interface for administrators that works via theme. Then I think you need to set public to true and use other values to prevent public querying etc
See WordPress.org http://codex.wordpress.org/Function_Reference/register_post_type
Related Posts:
- Can I assign a template to a custom post type?
- Get custom post_type’s archive URL
- Taxonomy, Terms, and Template Files
- Custom Post Types 404 Issue
- How to add custom content template part for a custom post type on main query using a plugin
- Template for specific post of custom post type
- Loading custom page template via plugin
- Templates for Custom Post Types and Custom Taxonomies
- Using Templates with Custom Post Type UI
- Apply template to custom post type
- Page is defaulting to archive page and not designated template
- How to quickly switch custom post type singular template?
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- Custom templates for posts like for pages: page-{id} vs single-{id}
- Posts in Multiple Columns and Rows with one single loop
- Custom page type – template under page attributes?
- Display different gutenberg template from selected post attributes
- Single page template for custom post_type
- Trying to manage templates on a blog with lots of custom taxonomies
- Turn query string to sub page
- Remove header and footer but KEEP all css and js etc for a custom post template?
- WordPress Template Hierarchy
- Create second custom 404 page for selected post type
- is_page_template not working as expected
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to show the archive / post type description on Single templates
- Create Template for Custom Post Type same like for Page
- Set up Custom-Post-Type Author Archive
- Template for custom post with custom taxonomy
- Custom taxonomy and custom post type – wrong permalinks and template
- Can I override a CPT template on a per post basis with Gutenberg block editor?
- Content vs Template on custom post
- WordPress Doesn’t Generate Taxonomy Archive
- Custom taxonomy returns 404
- Filter widget outputs
- Adding Page Templates to post but it ignored it
- Template for all categories of a custom post type?
- Flush Rewrite Rules when new site is created on network
- WordPress custom taxonomy template not working
- Custom post type pages return 404 page?
- Template files for Custom Post Type and Taxonomy
- Custom Empty Results page for my Custom Post Type
- make permalink go to a custom single.php file
- Creating Sections for Post Types
- How can I trace inconsistency in loading a template?
- Assigning alternate single-{cpt} template based on blog_id in multisite
- Custom post type is using the index.php template
- Get template part with CPT and Custom Taxonomy conditionals
- Template code to split a post and print a custom field?
- Displaying a list of Contacts
- How to create a template to show child terms of a MAIN taxonomy
- How to change single custom post template by custom taxonomy?
- Custom permalink structure for remote content pages
- Setting a homepage – doesn’t seem to work
- Archive Template being used instead of Category Template for Custom Post Type
- List of a specific Custom Post Type in Custom Template
- Require custom post type if is_admin() – template doesn’t show up?
- Function to allow single post template based on custom taxonomy?
- Shortcode in pages or tempate files for custom post type
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Custom Post Type, Custom Taxonomy Template: How to get current taxonomy name?
- Add custom template ‘sub-page’ to Custom Post type?
- Load info from customposttype into template page
- Custom post type defaults to index.php for archive page
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Post Attribute Section missing for Custom post type
- How do I force a CPT to select a shared custom template in Post Attributes?
- How to assign post to category
- Question on templates
- Assign for all post of a post type a specific single-post template
- Taxonomy template file not working with a taxonomy that contains a slash
- taxonomy – templates are not loading
- Custom taxonomy with custom post type template not showing
- How can I load Template file from wordpress plugin
- Templates for CPT not working
- Values show up in custom home page but not in custom post pages
- Organising custom taxonomies and custom post types
- Include template if a post is a single product
- Loading a template for a URL pattern
- How to decouple custom post types components from template?
- Show Templates in Custom Post Type Editor
- Custom Homepage As Single Page or Custom Post Type?
- Parent to another Custom Post Type – Template files not being recognized
- WordPress Custom taxonomy template
- Use one template for different custom post types with the same markup
- Custom page template not being called
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Custom post type pagination, single page issue
- Multisite – Echo admins profile meta
- Custom template support for custom post type?
- Using custom post types within a section of a template
- Listing all custom post types using a specific term on the said term’s template page, in groups
- Custom Post Type Template Based on Page Slug?
- Problem retrieving custom field for a custom post type
- Only One Post of Custom Post Type Appearing on Template Page
- PHP Button Custom link [closed]
- Choose custom post type template by category
- using a template for more then 1 page
- Why isn’t page attributes dropdown not showing up in a custom post type