Proper way to create custom static page
As has been mentioned, your way works, but there are some ways you can decouple the form from the template, allowing more flexibility. The Shortcode API allows you to create a shortcode for your form, so you can simply enter something like [my_form] in the page’s content, then within the function that handles your shortcode … Read more