Dreaded Fatal Error get_header() error
-
I’m redesigning my site and transferring it into WP. I want to have a static home page (home.php) and then off shoot to another page to contain my blog. I’m creatively calling this page blog.php.
Home.php works fine, but when I click on the link that I created to take me to blog.php, I get the error:
Fatal error: Call to undefined function get_header() in C:\wamp\www\wordpress\wordpress\wp-content\themes\twentyten\blog.php on line 16Line 16 is the line with the get_header function.
I’ve been researching this for the better part of my afternoon and the only times that I see this error come up are when people have changed the index.php file in the root folder, or some other such thing. I have not done that. I have only worked on the files that are within the Theme folder. I’ve triple checked to make sure that the home.php and blog.php are in the same directory(Themes).
So what gives? Why is the function working fine on home but not on blog?
- The topic ‘Dreaded Fatal Error get_header() error’ is closed to new replies.