Templates in wordpress just needs to be valid PHP files. You need to place your template inside theme ( or child theme directory ).
Have you placed the template in plugin directory ? if yes it won’t work.
https://gist.github.com/gmazzap/1efe17a8cb573e19c086
Template file set via setTemplate must be in theme (or child theme)
folder.
For more details of the issue you can try turning debug more on in wordpress and enable error reporting.
Related Posts:
- Looking for WordPress System Diagrams
- How can I load a page template from a plugin?
- Overwrite theme file from plugin
- How to control output of custom post type without modifying theme?
- When is it appropriate to put functions on page template vs. functions.php?
- Filter to change the content of 404 page
- How to properly use a hook to create template for custom product type in a plugin such as Woocommerce? [closed]
- How to check active theme is parent or child wordpress
- WordPress removing data attributes for scheduled post
- Is there a way to loop through a shortcode datasource to create a table?
- creating custom archive template within plugin for custom post type using archive_template filter
- Where to call wp_enqueue_script in a plugin with custom template?
- Can Page Templates be Applied to Archive and Post Templates?
- ORDER BY wp_post custom column name in wp_query
- Create a free scripts and styles template within a plugin
- How can I turn a custom wordpress page into a product page?
- Plugin templates vs Parent Theme
- How to make “upgrade safe” theme for a plugin?
- What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
- Why aren’t some plugin styles loading when I load a template?
- Plugin custom post template; without overriding all posts
- Best way to distribute templates and code accross multiple wordpress sites?
- Load php file with jquery in single.php
- Overriding the template files using a plugin for all themes
- How do I use a plugin to swap out the template file for a custom post type?
- Javascript not being loaded only in custom taxonomy template
- Add new header/footer on landing page with plugin
- Use a page as a template for a custom post type
- Page template compatibility with different themes
- How to set custom homepage via a plugin
- Template file structure , wordpress hook for altering the template
- Displaying External Data – Not Posts
- Making plugin output customizable
- Use different archive template for plugin
- How to display custom taxonomy and terms using/creating plugin template
- How to check during “pre_get_posts” if WP performing default query for specific custom template?
- WP Job Manager – Show recent jobs as cards
- Help interpreting @wordpress/create-block-tutorial-template usage error
- Is there any plugin development framework
- How do I add CSS options to my plugin without using inline styles?
- Handling results from data hooked into admin_post
- How do I create links at the top of WP_List_table?
- Why Does get_posts() Return an Empty Set?
- Get list of available wordpress actions
- How can i list current author’s categories?
- Rest Api How to get results of child categories with one api call
- Add Post and Comments menu no longer visible
- WordPress password reset – why post rp_key?
- Proper way to hook wp_get_attachment_url
- How to install WordPress Popular Posts plugin twice?
- Get the link text
- Multisite plugin development and wp_enqueue_script
- Is Dreamweaver CS5 a serious choice for theme/plugin development?
- How do I obtain a list of categories assigned to the current post?
- Modify hard-coded conditionals for roles to custom roles
- Reset plugins version cache | pre_set_site_transient_update_plugins
- Add column and post filter for a custom post type field on the edit.php page
- How to access noticeOperations from withNotices
- parse content from wikipedia article replacing search term with the title of article
- Thickbox doesn’t respect dimensions when used in admin [duplicate]
- jQuery in WordPress Plugin
- Why is my plugin version 0.1?
- WP Plugin Running before jQuery
- How to include jQuery into my plugin so I can use it on plugin page?
- Prevent WordPress automatically processing certain URL queries
- WordPress multisite,use same cookies across all website?
- How to check via conditional tags for a single plugin page?
- Settings API: Setting default option via ‘get_option’ fails
- Setting a JSON web token from a secondary api as a secure cookie on WordPress
- How to redirect to login page when user not loggedin on a particular page
- How do I validate extra pin field on my WordPress login form page?
- How to create a wordpress widget that dynamically changes according to the page
- Non editable custom taxonomy
- How to resize WordPress images on upload to specific height and width without cropping it
- Plugin to create Posts and Forums then choose category and parent forum
- Checking for existing title in custom db query not working
- Adding Permalink to Slides with ‘Simple Nivo Slider’ plugin?
- How to add a new taxonomy link to the admin menu
- Many Single Sites, One Plugin directory – adjust plugins_url()
- insufficient permissions; coding an action for plugin governed by custom capability
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- Include external po file for 3th party plugin to theme
- Adding the image selector/uploader to an admin back page
- How to know if current plugin is going to be used while rendering the page?
- Javascript scroll eventHandler only working when I’m logged in in WordPress
- cancel place order proccess
- CPT UI and custom database table
- Testing Plugins for Multisite
- Updating a WP Plugin SVN not showing on WordPress Website or Zip
- Calling dynamic_sidebar in plugin gives error
- How to add chunk of php, html, and sql code to variable an append to $content
- edit-tags.php in plugin admin menu hides when is the active page
- Best way to handle a form post in plugin
- Why does this fail: Disabling plugins enqueue_script() in functions.php
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Fixing plugin for wpdb::prepare
- Remove text from confirmation message
- Can I use an array to create multiple tables?
- Anyway to prevent admin from seeing other admin’s product?
- Bulk post approval and publishing doesn’t work