• First off, I’m completely new to the whole website building and specially editing php. I was trying to delete the post title in the theme presswork and was messing with it and I REALLY messed with it and don’t know how to fix it. This is the error code I’m getting:

    Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /hermes/waloraweb000/b1926/moo.shakenbunscom/wp-content/themes/presswork/admin/actions.php on line 210

    and this is part of the code I was messing with… also if anyone has any idea how to delete/hide the posts titles on presswork I would appreciate any help. THANKS!!1

    </header>
    <?php
    } else {
    echo “<header><h1 class=’posttitle’>”.__(“No posts found.”, “presswork”).”</h1></header>”;
    }
    }

    add_action(‘pw_archive_top’, ‘pw_archive_title’);

    /*
    * Category header
    */
    function pw_category_title() {
    echo pw_function_handle(__FUNCTION__);
    if(have_posts()) { ?>
    <header>
    <h1 class=”catheader”><?php single_cat_title(); ?></h1>
    <?php $catdesc = category_description(); if(stristr($catdesc,'<p>’)) echo ‘<div class=”catdesc clearfix”>’.$catdesc.'</div>’; ?>
    </header>
    <?php
    } else {
    echo “<header><h1 class=’posttitle’>”.__(“No posts found.”, “presswork”).”</h1></header>”;
    }
    }
    add_action(‘pw_category_top’, ‘pw_category_title’);

    /*
    * Author header
    */
    function pw_author_title() {
    echo pw_function_handle(__FUNCTION__);
    if (have_posts()) {
    pw_authorbox();
    } else {
    echo “<header><h1 class=’posttitle’>”.__(“No posts found.”, “presswork”).”</h1></header>”;
    }
    }
    add_action(‘pw_author_top’, ‘pw_author_title’);

    /*
    * Top of comments section
    */
    function pw_comment_section_title() {
    echo pw_function_handle(__FUNCTION__);
    echo ‘<h3 id=”comments-title”>’;
    printf( _n( ‘One Response to %2$s’, ‘%1$s Responses to %2$s’, get_comments_number(), “presswork” ), number_format_i18n( get_comments_number() ), ‘‘ . get_the_title() . ‘‘ );
    echo ‘</h3>’;
    }

  • The topic ‘Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'’ is closed to new replies.