None of the PHP functionality you’re after will run because your files is .html.
From what I can tell your template inclusion filter is ok, there’s some info missing like whether or not the CPT_LV_WD_PLUGIN_DIR_PATH constant is correct, but I’m operating under the assumption that it is because you said that the HTML is loading.
Functions like wp_head(), wp_header() and wp_footer() won’t run in your template because it’s an HTML file, so the server isn’t trying to render the PHP in it. I don’t think the issue is how you include your template, I think the issue is the template itself.
Related Posts:
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Creating a default Custom Post Template that a Theme can override
- Template for custom post type shows all posts instead of just one
- Get image URL from media library in input
- How can I use a file in my plugin as a replacement for single.php on custom-post-type query?
- WordPress show different custom post type
- How to provide page_template path in custom plugin using WordPress
- Tips for using WordPress as a CMS? [closed]
- Custom Post Type Templates from Plugin Folder?
- Pass PHP variable to javascript
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Is it possible to stop selected plugins from loading on certain template pages?
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Template plugin for blog posts? [closed]
- remove custom taxonomy metabox form custom post type
- [Plugin: Posts 2 Posts] reciprocal connections
- Custom Post Type Statuses
- How do I add a template to a theme using a plugin?
- How do I make a wordpress plugin with menu item etc
- add_meta_box Callback not being called
- Star rating for custom post types [closed]
- How to Make a Custom Grid View
- Way to hook into a sidebar call to replace it with a custom sidebar
- taxonomy_template filter do not loads custom taxonomy template properly
- How to enqueue a theme style-sheet to my admin settings page?
- wordpress reusable content blocks
- More than one text-domain is being used because of the included templates for plugins
- how do i remove posts from a WP_Query so the pagination is right?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Accessing post’s meta data based on user’s click of a post
- Should I fetch the data managed by a plugin by using its APIs or WordPress APIs?
- WP Post Template – Templates in own folder
- Plugin custom post type – Internal server Error
- Is it possible to create Custom Post plug-in?
- List taxonomy terms for post as checkboxes
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- How to make a proper custom post type link
- Matching Chapters to a Custom posts [closed]
- Facebook Messager Plugin
- Add comments for template variables
- Mq translate plugin custom post type issue
- Render custom php template into string
- How WordPress is able to change locale without using setlocale
- how to force tag page layout to use same as search layout?
- Calling the_excerpt from inside a plugin template file
- Best practice for including plugin output in a template without using shortcode?
- WordPress custom taxonomy not showing
- Using ACF default value to autoincrement a number field
- Default taxonomy template in plugin, override in theme
- How to Resize the Custom Post Images?
- How to use template_include hook with form submission?
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- posts from multiple post types in one slider
- Custom Post Type – custom form in dashboard
- Pagination shows Same posts
- Custom form not showing in correct place on page
- WP-API Custom Post Type json_no_route
- How can I list custom post type categories of portfolio
- Plugin generated unexpected output – No PHP errors
- Use jQuery Datepicker code from plugin
- Posts 2 Posts: Display custom types connected to the same other custom type but with another connection
- Including content from legacy app: via plugin or custom content?
- Dictionary-style definition list plugin
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Pass PHP variable to javascript
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- Import Recent Posts Only and Ignore old ones if exist
- WordPress REST API: Query media files attached to a custom post type
- How to get the custom field value using SQL query
- How to turn my WordPress site into a ready to deploy template?
- Setting Author on CPT
- how to display a template.php in a shortcode
- Create category for each user
- How to display the category name in the tab and post inside the tab in WordPress?
- Want to build parent-child relationships between custom post types created with CPT UI
- custom post type plugin error [closed]
- Add an action based on custom post meta field
- Merging new theme and plugins from development site to production
- Ultimate Members Default Post Layout problem
- How to add post title to custom php?
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- How to change the deafult template in WordPress plugin
- Calling an custom field from theme option at the frontend
- show Visual form builder in the front end
- Fake Single WordPress Post (Page) Loop
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- WordPress Custom post type won’t save properly
- Making a Custom Post Type Publish Loop
- WordPress User Frontend Editing Custom Fields
- Remove base from the custom post type URL [duplicate]
- Make a magic tag work with Custom Post Types
- Make a Custom template for a specific category in wordpress
- WP Customer Reviews call short code on another page [closed]
- How to display content depending on the Woocommerce Product Category
- How to make content as required in custom post type?
- Remove H1 title in admin post edit screen
- How to include Font Awesome icons into ‘menu_icon’ from register_post_type() function – wp admin?
- Is there potential plugin incompatibility if theme has no header.php and footer.php?
- How to make a page setting translatable in theme?