I want to make new custom page in wordpress where I can communicate with database and show results. I added one in root folder. It appears; but when I try to display menu, headers. It gives error.
Fatal error: Call to undefined function get_header()
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add
Template Name: (some name)comment on top of script, and when you add new page in admin, select your new template.Also, this PHP script needs to be in
/wp-content/themes/(theme-name)/folder.Here: