Most guides on how to add a custom PHP page in Wordpress will explain how to do it using a template in a theme, but this is a restrictive method of adding a custom PHP page to Wordpress. It's actually quite easy, perhaps slightly inefficient, to dynamically create a custom template for a Wordpress theme.…