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]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Create custom page templates with plugins?
- Custom Post Type Templates from Plugin Folder?
- Implementing a CrunchBase.com Clone using WordPress?
- Pass PHP variable to javascript
- Custom media upload content for inserting custom post shortcode
- Redesigning Custom Post Type “Add New” page
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Allow users mark posts as “complete”?
- How to Include a Loop Template File in a Plugin
- Woocommerce email template customization [closed]
- How to get the HTML until ?
- More than one text-domain is being used because of the included templates for plugins
- Is there a way to order posts and custom post types as one group?
- RW Meta Box ,Problem setting post title
- How does WP handle multiple matching rewrite rules?
- how do i remove posts from a WP_Query so the pagination is right?
- Saving Custom Post types and fields to a custom table
- dynamically generating plugin syntax
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Building a store locator with google maps
- Can we use a webservice with WordPress?
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- 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
- Register Page Template from Plugin
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- Correct way to make meta box with more than one meta field secure
- I want to extend the current themes’ single.php to display the meta fields of my CPT
- Plugin custom post type – Internal server Error
- Exclude post by custom meta with pre_get_posts
- How can I create a custom shortcode that will return a custom post type by ID?
- Is it possible to create Custom Post plug-in?
- get_post_type() and WP_QUERY issue
- get_post_type on post.php
- List taxonomy terms for post as checkboxes
- All of my custom posttypes are 404’ing
- more types plugin – display all post of post type on page
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- List Category Posts rewrite necessitates rewrite of customised templates
- How to make a proper custom post type link
- Matching Chapters to a Custom posts [closed]
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- Custom post type – no layout section of Document tab, and no author choice
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- ‘No Results Found’ on single post for custom post type
- Keep a post copy when this one is updated – issue
- Making a Template for a CPT created by a plugin
- how to add a button next to the wordpress view button?
- (FES EDD) New vendor submission page is blank
- Plugin-generated pages use Not Found or Pages Archive templates?
- auto populate list of questions if user select a category xyz
- How to display (plugin?) output on a single page (not a widget, probably not a short code) – template, plugin, combination?
- Facebook Messager Plugin
- Advanced Custom Field DatePicker [closed]
- Use of Templates in a Plugin
- Add comments for template variables
- Mq translate plugin custom post type issue
- Render custom php template into string
- Perform internal redirect in WordPress?
- How WordPress is able to change locale without using setlocale
- “Custom Post Type Permalinks” plugin URL strcuture
- Unable to delete custom post types, confusion around capabilities
- Adding CSS to custom post type admin page causes error
- ACF: post query, hide duplicate values [closed]
- Is there any hook for theme activation ? or something similar?
- How to use get_template part in the plugin?
- Redirect to another page using contact form 7? [closed]
- changing posts layout in ultimate member profile plugin
- Template filter for custom taxonomy terms
- how to force tag page layout to use same as search layout?
- What is the best way for showing a grid of customer logos?
- Custom Post Type Fields
- How to delete all trashed item in one-go
- Custom setup of wordpress comments that are displayed
- publish_post action doesn’t work
- Calling the_excerpt from inside a plugin template file
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- Best practice for including plugin output in a template without using shortcode?
- WordPress custom taxonomy not showing
- Timber – Twig post.content returns null can’t create ACF Gutenberg blocks
- Using ACF default value to autoincrement a number field
- custom post type don’t appear in the home page
- Where to find the code used to render a page that has a shortcode and a template defined?
- How do I override plugin templates and stylesheets?
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- WordPress as template engine
- Default taxonomy template in plugin, override in theme