Wouldn’t ya know – 10 minutes or less since I asked my question and I’ve discovered the answer.
I was attempting to define MY_PLUGIN_TEMPLATES using using plugins_dir_url(), now it looks like this and is working:
define( 'MY_PLUGIN_TEMPLATES', dirname( __FILE__ ) . '/templates' );
Thanks to mfields for the suggestion of dirname instead of WP_PLUGIN_DIR.
Related Posts:
- How to add custom content template part for a custom post type on main query using a plugin
- Loading custom page template via plugin
- How to set a fall back template for a custom post type in a plugin?
- Main query not querying any posts in custom taxonomy template
- Custom Empty Results page for my Custom Post Type
- Warning , Use of undefined constant PLUGIN_PATH?
- get_permalink() of page the enclosing page not posts
- How can I load Template file from wordpress plugin
- Show Templates in Custom Post Type Editor
- How to avoid hardcoded text in a custom page template?
- Can I assign a template to a custom post type?
- Custom Post Type Plugin: Where Do I Put The Template?
- Searching multiple custom post types and pages
- How to Add Custom Taxonomy To Woocommerce Plugin
- Taxonomy, Terms, and Template Files
- Quick edit screen customization
- Mini-Site Strategy
- Using Templates with Custom Post Type UI
- Custom Post Type Archive URL takes over page URL
- Render a different post/template from within the template_include action?
- Custom Post Type Archive Template
- Custom templates for posts like for pages: page-{id} vs single-{id}
- Posts in Multiple Columns and Rows with one single loop
- Display different gutenberg template from selected post attributes
- Trying to manage templates on a blog with lots of custom taxonomies
- How to register custom post types in a plugin?
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- How to get current post id of a custom post type in a loop using template singel-{custom type}.php?
- Pagination Issue: Custom Post Type In Index
- Hierarchical or Non-hierarchical Custom Post Type in Real World Example
- Create second custom 404 page for selected post type
- How could I create a ‘private comments’ section on a custom post type?
- Issue with pre_get_posts on custom post type archive pages
- Create Template for Custom Post Type same like for Page
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Custom post type content using custom fields without template
- Add custom ID to CPT posts only create not update
- Add custom post type as submenu [closed]
- Unable to get Custom Plugin Options data
- What is the best practice for displaying my plugin content in themes?
- custom comments form for custom post type
- Archive for a Taxonomy of a Custom Post type
- Set templates for custom post types
- When should I create custom post types?
- Custom post type’s extra fields – how to handle?
- How can I use archive-{post_type}.php theme template?
- Which file/template is in charge of taxonomies for custom post types?
- Show current custom taxonomy
- How to insert data into meta box from another plugin?
- How do I assign a block template (.html) to a custom post type?
- Create a select metabox that the user can pupolate?
- Archive Template being used instead of Category Template for Custom Post Type
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- handling templates and widgets for custom content types
- Mandatory field in Custom post
- Custom post type category link redirecting to 404 page
- Translate website without duplicate custom post
- How to store the third party script with HTML code in the wordpress custom input field?
- How to upload an image to a custom post type
- Changing CPT permalink
- Add custom template ‘sub-page’ to Custom Post type?
- Load info from customposttype into template page
- custom post template design with dropdown option
- Apply a custom Template to a Custom Post Type from within a plugin
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- 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
- Error when moving custom post type to bin
- Correct way to register custom post type from external php file?
- How to assign post to category
- Custom taxonomy with custom post type template not showing
- Add an array as post content dynamically
- Single taxonomy for different custom post types
- Values show up in custom home page but not in custom post pages
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- Not Able to List CPT Based on Taxonomy Term
- How to reset HTML filter input fields on CPT list page?
- Organising custom taxonomies and custom post types
- Can’t save custom post type fields
- Include template if a post is a single product
- Simple renaming my custom post type set with a plugin doesn’t work?
- How to decouple custom post types components from template?
- get_post_types doesn’t work in plugin
- Parent to another Custom Post Type – Template files not being recognized
- Associate custom categories to different user IDs
- Render custom taxonomy query as single template
- How to use get_sidebar in plugin folder?
- Having some trouble properly displaying Custom Post Types in templates
- Get term_id for each instance of custom taxonomy
- 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
- Problem retrieving custom field for a custom post type
- Only One Post of Custom Post Type Appearing on Template Page
- Choose custom post type template by category
- using a template for more then 1 page
- How to create an upload page (front side)
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Custom Post Type urls not working
- Why isn’t page attributes dropdown not showing up in a custom post type
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs