I am trying to create a theme.
I created a header.php
file and call this file in index.php
using
<?php get_header();?>
When I try to run my index.php file it shows this error:
Call to undefined function
get_header()
What could be wrong?
I am trying to create a theme.
I created a header.php
file and call this file in index.php
using
<?php get_header();?>
When I try to run my index.php file it shows this error:
Call to undefined function
get_header()
What could be wrong?
Comments are closed.
WordPress theme templates are not meant to be executed directly. They are loaded by WordPress core (after appropriate environment had been set up) according to Template Hierarchy.
source