I have created a template in my child theme using the page.php layout. The difference for this page compared to the rest of the pages will be minimal. It will contain a search engine that is called via a php include.
When I view the new page in my browser using the permalink, it works perfectly fine. However, when I try to access the page directly via the url [http://casiopa.mediamouse.ca/wp-content/themes/casiopa/searchresults.php], I get a php error ]Fatal error: Call to undefined function get_header()]. The problem is that I need to call the page using the url and not the permalink for the search engine to work. This page is located in the same file as my style.css and functions.php pages.
Wondering if anybody can be of any assistance. php is something I'm new at and I'm wondering if this has something to do with file paths in the template file. I have tried working on this, but can't seem to get past the error.