The function is simple, that is, to write a wordpress plug-in. When the plug-in is installed and enabled, a page is automatically generated on the wordpress front-end homepage (not a page for publishing articles, is a separate page), and uses terracode to output a form. The function is simple, that is, to write a wordpress plug-in. When the plug-in is installed and enabled, a page is automatically generated on the wordpress front-end homepage (not a page for publishing articles, is a separate page), and uses terracode to output a form.
Reply content:
The function is simple, that is, to write a wordpress plug-in. When the plug-in is installed and enabled, a page is automatically generated on the wordpress front-end homepage (not a page for publishing articles, is a separate page), and uses terracode to output a form.
I guess there is a way, but I don't know.
In fact, I do not advocate using plug-ins to pollute the WordPress URL routing system.
You can always create a page. The content does not matter. You only need to perform URL routing tasks. Then, use the plug-in to replace all the content of the entire article (or even the template) to implement your business logic.
I used to fill out a form registration system for holding activities for a WP website. The idea is as follows:
- Create a page that occupies URL Routing
Http://xx.xx/apply/
- Use a plug-in to take over the content of this page
- The part that involves step-by-step operations and parameter passing. Use the same URL and add the GET and POST parameters.
- The content on this page contains "the registration system is currently disabled", which is used as a protection (fallback) for consciously prohibiting plug-ins. A clear reminder is given to users that the website function is disabled.
Using WordPress's wp_insert_post function, you can refer to the contribution of this article function: http://www.wpzhiku.com/wordpress-front-form/