The implementation of the function is very simple, is to write a WordPress plug-in, when the plugin can be installed to automatically generate a page in the WordPress front desk (not the page to publish the article, but a separate page), and use Shortcode output a form form.
Reply content:
The implementation of the function is very simple, is to write a WordPress plug-in, when the plugin can be installed to automatically generate a page in the WordPress front desk (not the page to publish the article, but a separate page), and use Shortcode output a form form.
I guess there's a way, but I don't know.
In fact, I also do not advocate the use of plugins to pollute the URL routing system wordpress.
You can always really do a page, content does not matter, only assume the task of URL routing. Then use plug-ins to replace the entire article content (including templates) to implement your business logic.
I used to do a WP website for the event of the application of the filling system, the idea is this:
- Make a page that takes up URL routing
http://xx.xx/apply/
- Completely take over the content of this page with a plugin
- Parts that involve step-by, parameter-passing, using the same URL, by adding get and post parameters
- The content of the page itself is written on the "registration system is temporarily closed" as a conscious prohibition of the plug-in when the guarantee (fallback) measures, to the user site features close the clear hint.
Using the Wp_insert_post function of WordPress, you can refer to the Post function in this article: http://www.wpzhiku.com/wordpress-front-form/