Parse error: syntax error, unexpected 'get_header' (T_STRING)
-
I haven’t ever seen this and can’t find anything on it. The full error is:
Parse error: syntax error, unexpected ‘get_header’ (T_STRING) in /home1/cameronh/public_html/thisiskeep.com/wp-content/themes/keep_child/new-template.php on line 1The line it is referring to is:
<?php /** * The template for displaying all pages. * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package Generate * Template Name: New Template */ get_header(); ?>
If I remove “get_header();” then the error goes away and the page displays … but without any styling, of course.
Is there any logical reason get_header(); would throw an error?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Parse error: syntax error, unexpected 'get_header' (T_STRING)’ is closed to new replies.