This is not possible at all. There aren’t even duplication between page templates between the bundled themes.
There is no way for you to know or to predict functions, outlay or markup in any template. IMHO, because of this, templates should always reside within a theme and not in a plugin. Afterall, templates are theme specific and not compatibable cross themes.
Even if it was possible, I would really think that it would be an unmaintainable mess. Introducing new templates in a theme is easy, and it keeps thing maintainable without effort.
As @Milo suggested, there are a couple of filters which you can use to target what is being displayed on a page which includes
-
the_post
-
the_posts
-
loop_start
andloop_end
-
post filters like
the_content
andthe_title
.
There is also the possibility of using shortcodes which is meant for something like what you want to do
Related Posts:
- How can I load a page template from a plugin?
- Can Page Templates be Applied to Archive and Post Templates?
- Best way to distribute templates and code accross multiple wordpress sites?
- Load php file with jquery in single.php
- get_template_parts() usage
- Looking for WordPress System Diagrams
- How can I add an option to the Page Template list from a Plugin?
- Overwrite theme file from plugin
- How to control output of custom post type without modifying theme?
- Loading custom page template via plugin
- When is it appropriate to put functions on page template vs. functions.php?
- Filter to change the content of 404 page
- How to create custom home page via plugin?
- Dynamically override page.php or single.php with custom templates using function
- Is it possible for a plugin to register a page template file?
- How to properly use a hook to create template for custom product type in a plugin such as Woocommerce? [closed]
- Calling a function from functions.php in custom page/ blog post
- Build dynamic page from cURL (HTML page) response with plugin
- How to check active theme is parent or child wordpress
- Load page template with custom content using a plugin
- How to Add Page Template from Plugin without Losing $this
- WordPress removing data attributes for scheduled post
- Is there a way to loop through a shortcode datasource to create a table?
- Dequeue theme stylesheets but keep widget styling on custom page template
- How to display non-page / post content
- Change template dynamically
- creating custom archive template within plugin for custom post type using archive_template filter
- Where to call wp_enqueue_script in a plugin with custom template?
- Problem with parameters in url and pagination
- Set page template programaticlly in plugin
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- ORDER BY wp_post custom column name in wp_query
- Register Page Template from Plugin
- Create a free scripts and styles template within a plugin
- How can I turn a custom wordpress page into a product page?
- Plugin-generated pages use Not Found or Pages Archive templates?
- Custom Plugin theme filter
- Plugin templates vs Parent Theme
- How to make “upgrade safe” theme for a plugin?
- What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
- Remove sidebar on single page using plugin API
- my basic php code producing unexpected results
- Create page (not the post type) dynamically
- How to create templates for a custom module to show on the front end within my theme?
- Why aren’t some plugin styles loading when I load a template?
- Plugin custom post template; without overriding all posts
- How to output functions from plugin inside theme
- How do I show content from a plugin using the template the site is currently working with?
- How to remove/replace current page template?
- Conditionally check if page is using template from plugin directory
- Overriding the template files using a plugin for all themes
- How do I use a plugin to swap out the template file for a custom post type?
- How to save multiple values in custom post type from front end to back end
- Javascript not being loaded only in custom taxonomy template
- Add new header/footer on landing page with plugin
- Change Front page displays settings conditionally when user is online
- Can’t create a blank template
- How can I load Template file from wordpress plugin
- Code to add template to page
- Use a page as a template for a custom post type
- How to set custom homepage via a plugin
- Template file structure , wordpress hook for altering the template
- Displaying External Data – Not Posts
- Making plugin output customizable
- Use different archive template for plugin
- How to display custom taxonomy and terms using/creating plugin template
- How to check during “pre_get_posts” if WP performing default query for specific custom template?
- Using a Page Template Not in Theme
- Find Any Theme’s page.php File
- WP Job Manager – Show recent jobs as cards
- Help interpreting @wordpress/create-block-tutorial-template usage error
- REST API error in block editor for custom templates
- How to provide page_template path in custom plugin using WordPress
- Generating Multiple Divi Pages from Database
- ‘global’ not working when passing variable from plugin file to template
- get_shipping_methods() return empty rate
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- Ajax function is not working on WordPress
- Templates dropdown not appearing using _s theme (underscores)
- Best way to ping for the API changes in the wordpress?
- when i activate my plugin i want to auto create pages with shortcodes
- Auto-complete or auto-suggest from stored data in database
- How to generate feed for custom template
- Schedule some work in custom plugin
- What is the replacement for rich_edit_exists()?
- Disable Auto-Expanding Menu in WordPress Admin Menus
- How to overwrite iris color pallates from theme to plugin
- Get images / media attached to a page by page ID
- How to submit/upload data to database and in specific folder?
- OOP plugin not working
- Hard Coding Components on a Client Specific Websites
- About a programming language starts with [closed]
- Adding Custom CSS with PHP
- in_array function Problem
- Best practice for plugin: always detect admin-ajax call?
- custom wp_editor does not save the content in plugin settings
- Plugin Development: Storing and Manipulating Data That Fits JSON in Database
- Adding another field to user table
- How to set a header in wp_safe_remote_get()?