Using the following code I was able to load the custom template.
public function register_hook_callbacks(){
// Enqueue Styles & Scripts.
add_action( 'wp_enqueue_scripts',
array( $this, 'enqueue_scripts' ) );
add_filter('template_include',
array( $this, 'view_project_template')
);
}
Related Posts:
- Page Template Dropdown For Custom Post Types
- Query custom post type and showing its content
- What is singular.php?
- What are the differences between custom post type and custom page templates?
- Page Template as Custom Post Type Archive
- Setting a custom sub-path for blog without using pages?
- How to completely disable a taxonomy archive on the frontend?
- Add Content to Page without shortcodes
- Loading custom page template via plugin
- Post formats “audio” and “video” only showing in index.php
- Show Custom Post Type meta boxes only on Page Edit
- Adding the_content() in custom template email
- Creating a Page Template to display all items from a Custom Post Type
- Filter widget outputs
- Why does my content disapear when I make a page to match an archive name?
- Custom Post Type Template Alternative
- Migrating a taxonomy’s tags to the native category
- General advice on addressing content-centric pages
- Adding custom image sizes and post types to a plugin or to a theme?
- Fields for different parts of a page
- next_/previous_post_link() `in_same_category` appears to fail when true
- Multiple templates for single custom post type
- Want to be able to sign up subscribers as authors
- How do you create a custom template to display a category with an image and related posts below?
- How do I set a custom page template for a custom post type?
- WordPress Custom Search by post_type
- Pages Become “Archive” Instead of Using Page Template
- How can I set the page template of a new custom post type post?
- Custom post type pages return 404 page?
- Unable to set featured image
- Multiple single templates?
- Custom URL redirect in WP
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- Associate page w/ specific single post template?
- Running a song lyrics site on WordPress
- Using page slug in wp_query
- Specify a particular page to list all custom types
- uploading problem of wordpress theme
- Include php on a specific page template
- How to have permalink like domain.com/term/postname?
- get comments by current user inside page template
- page template for custom post type
- Custom post types problem
- How to integrate single and archive templates for custom post type in any WordPress theme
- why post_class() function apply css classes to all other files?
- Template Hierarchy for custom post type pages
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- providing access to post_id or post inside functions.php
- wp_get_canonical_url showing first url of the post for custom page
- Custom page for editing custom post type on frontend based on url
- Dynamic assign a custom template to custom post type posts
- How to get the current category with custom posts
- Custom post type is using the index.php template
- Create a simple Testimonial page
- One Site. One Theme. Multiple Stylesheets without plugins?
- Custom Post Type – Portfolio no longer works
- Methods for development wordpress themes [closed]
- Render a Post or Page using the correct file
- Can I assign a theme to a custom post type?
- How do I display child post types in the parent post type template
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- How to add page under a custom post type?
- Custom permalink structure for remote content pages
- Enabling permalinks disables custom page template
- Custom Post Type Specific Post Template
- Mixing Custom Post Types and Page Templates in WordPress 3.7.1
- Custom Post Type Template Insert not working properply
- Loop and add Specific Categories and Products Images
- Custom Post Type – Main page for certain posts
- custom post template ignored after altering permalinks
- display two images in theme header.php file
- Custom Post Type page template doesn’t show up
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Display ONE taxonomy and its assigned pages
- Display custom post type from template
- Problem with custom loop navigation inside the blog page
- WordPress giving me the index
- How to use pre_get_posts on archive page custom post type
- Can I automatically assign a page template to a custom post type (i.e page-slug.php file)
- Invalid content when I try to import custom post type from the old template wordpress
- How To Display Posts Of Custom Post Type At Page Template
- Virtual page and loading template
- Custom Post type dont use custom page template (slug is not right)
- How to change Elementor Template for Single Page Post on Load
- A certain theme is forcing it’s singular post layout
- How to create additional rendering for custom post types?
- Query when is one or several values
- Modify Custom Post Type Slug
- DIVI Theme customizer changes not applied on existing pages and designs are not shown on the front
- How do I find out which (page) template file my custom child post is looking for?
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- Custom post type not pulling CSS
- Set a template on a custom post in the plugin
- How can I use a custom template to load custom post type posts based on a post_meta value
- How can I use one instance of page.php to display different custom post types?
- Showing Custom Post Type with his templates on a custom page template
- Displaying posts inside table having issues
- Question on templates