简体   繁体   中英

How to add a HTML or a PHP file, that includes a form, into Wordpress?

I am currently working on a Wordpress project for fun. My current problem is, that I don't know how to insert my html/php pages in to WordPress so the users could see them and I could for example, get the POST data for my queries.

you can create a custom Template page, that contain what you like and save it into your current theme folder,

<?php /* Template Name: MyPage */ 
//do what you like
?>

after you in backend you can add a new page and select your new Template in Page's attributes->Model

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM