Maybe single_template or template_include filters would help you achieve the result you want?
You can use either of those filters to change which template WordPress loads for your content.
Related Posts:
- How to include PHP files in plugins the correct way
- What’s the difference between term_id and term_taxonomy_id
- Prevent network activation of plugin
- How are bulk actions handled in custom list table classes?
- Get list of scripts / styles and show file which enqueued them
- WordPress updates defined vs add_filter?
- Creating Settings Page with dropdowns for Plugin
- Empty POST data on server on AJAX request using Angular $http
- Custom Nav Menu items default to ‘menu-item-type’ => ‘custom’. How to make a “page” menu item?
- How to tell if an option has been created vs an empty option?
- jQuery in header or footer
- Custom attachments uploader code. Almost there!
- $wpdb->insert is changing a value
- What are the default WordPress password requirements?
- Can I get all options using the option group id? [closed]
- Actions or filters fired when data is saved in a custom table
- Implementing namespaces in plugin template
- How to get current page name in my wordpress plugin
- WP Cron doesn’t save or in post body
- Conditional add_filter?
- Use register_taxonomy() in register_activation_hook()
- Pages 404 in wordpress
- How to update/auto-update my private plugin? [duplicate]
- How to use WP default post list tables in a plugin?
- Calling apply_filters on non-documented hooks
- Commit changes to WordPress Plugin SVN with TortoiseSVN
- Why is WP_Mock not used instead of WP_UnitTestCase for writing unit tests by most plugins?
- add_shortcode is not working [duplicate]
- Metabox Not Showing on Custom Post Type But On Pages and Post
- Using Checkboxes on Plugin Options Page for Custom Plugin
- Create a Page via plugin
- Generating User(s) with Settings API
- Processing shortcodes in groups (separated by line breaks)?
- How to get the post content after WordPress post processing?
- Including a JS source with an admin page
- Can a plugin be used to contain all custom functions to extend other plugins
- Programmatically modify an admin page UI of a WordPress site from my WordPress plugin
- Global State During an Admin Post
- Display custom fields in frontside user profile
- Strange issue saving custom field data for a WooCommerce order
- How to programmatically add a custom template that appears in Site Editor from a plugin?
- Append wp_editor to Dynamically created textarea
- Is using custom table to suit business needs instead of transients a big hit to page load speed?
- Build a translation correcter plugin
- Secure REST with nonce works only when not logged
- captcha not working in my custom plugin
- Selectively update themes in WordPress multisite
- How do I link to a php file in my plugin directory?
- How to set a cookie for logged in users to md5($user->ID . “my_secret”)?
- How to create a page with a form programmatically in WP?
- jQuery instantly executes (a button click and css change) on load
- Meta box on options page save form problem
- How to make my shortcode load scripts and styles, from within the plugin?
- Class cannot be found, but it’s available in the file, I get: Fatal Error: Uncaught Error: Class ‘Blocks\Base\Activation’ not found
- how to change image of jquery slider plugin
- Sending an SMS on new order placed – WooCommerce
- Where to use nonce
- How to show parents of current page category, excluding the category?
- get_avatar filter in WordPress 4.4, how to filter properly
- How to use a WP_Customize_Control outside of the Customizer?
- Overwriting a plugin function
- How to make a cronjob type plugin
- How do I debug an error that a plugin is causing?
- Update plugin settings option_name for big plugin update
- What could cause a WP Option to get truncated?
- Simulating timeout is not working
- Add custom product data using javascript when add to cart button is clicked
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- Hiding class namespace from plugin’s extensions
- Relational / Associate tables using native WordPress functionality
- Changed media upload path for plugin, but generates error & shows wrong url
- Pull commentdata for pre_comment_on_post from comment_post_ID
- Woo-commerce: Adding additional page sections using a child theme
- Plugin dev: How to multiply instances of a plugin in the same metabox?
- Get the post ID only off single page
- How to get html tag ids from template?
- Bootstrap collapse in custom WordPress widget
- Page reload occurs before request finishes
- PHP Fatal error when using plugin_basename
- How to Rewrite WordPress URL for a Plugin
- How to Prove Ownership of plugin [closed]
- how can a plugin return an error message on activation?
- Declaration of mandoe_menu_walker::start_el(&$output, $item, $depth, $args) must be compatible with Walker::start_el(…)
- Reading the inside of
- WordPress, GIT, Renamed Plugin Dir + files – Working Code now Broken [closed]
- get_term_by() returning null on plugin
- How to create a database table in WordPress using PHP
- Render raw html in Gutenberg block
- How can I create a custom plugin to call webapi after user registration?
- Displaying an Uploaded Image as a Custom Avatar in WordPress
- Rest Api WordPress
- How to create A – Z List with pictures?
- How do I display and edit other posts within the ‘Edit Post’ area of Wp-Admin Dashboard
- A better way of getting draft posts that has a particular post meta using get_posts function
- Save translation file of third party plugin in a custom plugin?
- Custom rewrite, url path with parameters to a page
- Developing an IP lookup function using an API
- Making a user platform reachable by a qr code on a pin-back-button [closed]
- how to add contact form 7 shortcode in javascript variable
- select rows based on exact time (hours, minutes and seconds)