Use WordPress function in php file
There are two things to do to make this work. First, you have to turn your php file into a template that can be recognized by WordPress. This is simply done by adding the following to the top of your file: <?php /* Template Name: WPSE Example Template */ ?> The second thing is, you … Read more