1
vote
1answer
300 views

How to stop fatal error when loading theme template file directly

If one tries to load a theme template file directly, the following error message is displayed: Fatal error: Call to undefined function get_header() in ... and it goes on to list the full directory ...