Answer the question
In order to leave comments, you need to log in
How to display my own developed Wordpress plugin on a specific page?
I more or less figured out how to develop plugins for WP: how to write logic, settings pages, admin pages for the plugin, but I can’t understand and find information on these issues:
1) In plugins installed from the WP directory, I often see in the settings such an item where a specific page is selected on which the plugin is displayed (on the frontend). Here is an example of such a setting in the event calendar organization plugin:
Here, a specific pre-created page is selected from the drop-down list or it is proposed to create a new one. As a result, a calendar from this plugin is displayed on the selected page.
Question: How can I make such a plugin binding to the page programmatically or somehow, so that as a result the frontend of my plugin is displayed on a specific page?
2) Question: How is the "template" of the plugin frontend implemented to display it on some page? As I understand it, you can make a function with layout, make a shortcode for it and insert it on the page. Are there other ways? For example, with the removal of the layout in a separate theme file. And which option is more correct?
3) Question and "PS" at the same time: Specifically, in my case, I need to display a product catalog from Woocommerce with some modification of appearance and functionality. That is, there will be a standard store from Woocommerce and, in parallel, you need to display another plugin of your own on another page, which also uses products from Woocommerce and is very similar in appearance to the store catalog. I would be glad to receive answers, both general and specific on Woocommerce (for example, maybe you can just copy-paste something from woocommerce, but still the most important question is how to attach the plugin to the page)
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question