Call to undefined function get_header() when accessing theme directory
-
Hello!
WP themes have an index.php file in their root that generates the error in the title when accessing said theme root.
Is there a way to prevent this(.htaccess rule?) as i don’t want the server folder hierarchy displayed like this.Thank you!
p.s.
Is it just me or is this stemmed from a bad practice in WP? IMHO index.php should not be in the template hierarchy adn should instead be of the “silence is golden” variety.
- The topic ‘Call to undefined function get_header() when accessing theme directory’ is closed to new replies.