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
- 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
- wp_mail is undefined
- How do you use the plugin boilerplate loader class to hook actions and filters?
- Turn revisions off in plugin instead of config.php?
- Script to remove all inactive widgets?
- Disable $title in Plugin Options Screen?
- DIR vs URI when defining a path to a file
- My new WordPress plugin version is not showing up in the plugin directory. It’s been 4 days what could the problem be?
- Is using register_activation_hook required?
- Synchronize Custom post type tags to WordPress default posts tags
- Tabbed navigation for plugin options using same row in database for all?
- How can I prevent my plugin’s next version from updating one of the files?
- Custom entity search and display
- post_title is empty on global $post object
- Can woocommerse be used dynamically for billing from another plugin for payment processing?
- How to create post favorite function without plugins
- Mock a dependency of a WP_REST_Controller class
- Remove All Taxonomies from Post On Update
- How to create archive page to add in menu
- Query String Filtering API
- How to use own css of functionality plugin?
- Get Custom taxonomy parent with wordpress REST API
- What to do with the .git folder in a WordPress plugin during local development
- ajax-action.php can’t find added action
- Hide post by ‘post_category’
- Saving post meta
- Upgrade routine: Interaction with user confirmation
- Settings API not Saving to Database or Display