WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help Please: Parse error: syntax error, unexpected '{' in (3 posts)

  1. chezshire
    Member
    Posted 1 year ago #

    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: 'http://sccc.maxworks.org/me', 'http://sccc.maxworks.org/clients/' and 'http://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.

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

  3. chezshire
    Member
    Posted 1 year ago #

    Thank You SWD,
    I was able to resolve several issues and am very thankful for your kindly assistance and help. I hope you have having a great weekend as you deserve it.

    Again thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic