How can I use the wordpress plug-in to create a front-end page?

Source: Internet
Author: User
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 RoutingHttp://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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.