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
- Include theme header and footer in custom plugin
- 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 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
- How to get the HTML until ?
- 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
- 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
- How to make a proper custom post type link
- Matching Chapters to a Custom posts [closed]
- Add comments for template variables
- Mq translate plugin custom post type issue
- Render custom php template into string
- How to use get_template part in the plugin?
- What is the best way for showing a grid of customer logos?
- Best practice for including plugin output in a template without using shortcode?
- Default taxonomy template in plugin, override in theme
- 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
- Custom Post Type – custom form in dashboard
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- Pagination shows Same posts
- 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
- “Allowed memory size” problem [closed]
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Including content from legacy app: via plugin or custom content?
- Dictionary-style definition list plugin
- Multiple Post Thumbnails Plugin – Need help with code
- Wp-minify doesn’t seem to minify my JS code
- Custom Post Type, Custom Columns List
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Pass PHP variable to javascript
- need click to clipboard button on my site
- Setting Author on CPT
- Create category for each user
- Enqueue css to a third-party plugin template
- Adding category base to url in custom post giving 404?
- custom post type plugin error [closed]
- Problem with checked box on wp car manager plugin
- Merging new theme and plugins from development site to production
- 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)?
- How to access Post Archive created by Elementor?
- Accessing download link from the loop with WP Download Manager Pro
- 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
- WordPress arrows dissapeared strange signs
- Calling an custom field from theme option at the frontend
- Creating themes using the one Plugin (Toolkit)
- How to add jquery to my custom post type wp plugin
- WordPress list child pages of custom post type
- 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
- Remove base from the custom post type URL [duplicate]
- Make a Custom template for a specific category in wordpress
- A plugin for software reviews site like this one?
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- jet engine listing for every single taxonomy in post type [closed]
- How to make a Template page to show the information of different things Shop and Product page?
- Set the title of a custom post automatically by using info from custom fields?
- public custom posts not showing in my wordpress plugin
- plugin translation *.mo file not getting loaded for custom post
- Newspaper theme, custom query vars, & custom rewrite rules
- How to add CPT in Elementor pro search template
- how to compare date meta value in jet smart filter Date query?
- Add block templates (html) via plugin for custom post type
- Tickera missing attendees – No attendees found
- Remove H1 title in admin post edit screen
- How do I know if an archive correspond to a custom post type taxonomy?