Help Please: Parse error: syntax error, unexpected '{' in
-
Hello, I’m new to wordpress.
Currently I am building my first site following having taken an introductory class to wordpress at school. I am getting the following error with my page.php template: Parse error: syntax error, unexpected ‘{‘ in /home/maxster/sccc.maxworks.org/wp-content/themes/q3_wColor-child/page.php on line 36.This seems to happen on any page using/calling the basic page.php which is applied to the following pages: ‘https://sccc.maxworks.org/me’, ‘https://sccc.maxworks.org/clients/’ and ‘https://sccc.maxworks.org/contact/’, all of which are top level/parent elements. The homepage which uses a template works ok, the other pages seem to work ok, but those calling the page template don’t and i get the noted error. I tried removing the curly first curly brace, removing both, removing the last one. Removing both produced a T-string error. Currently the error i am getting is as follows:
<?php //this allows the standard page to sort posts based a specific category if( is_page( 'Film' ) { query_posts( array( 'category_name' => 'Film' ) ); }?>
My code is shown above – hopefully someone can help me as i’m quite befuddled.
- The topic ‘Help Please: Parse error: syntax error, unexpected '{' in’ is closed to new replies.