Title: Parse error: syntax error, unexpected T_STRING, expecting &#039;,&#039; or &#039;;&#039;
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

 *  [iasmom](https://wordpress.org/support/users/iasmom/)
 * (@iasmom)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-expecting-or/)
 * 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.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [post title](https://wordpress.org/support/topic-tag/post-title/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [iasmom](https://wordpress.org/support/users/iasmom/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-expecting-or/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
