Title: Parse error: syntax error
Last modified: August 19, 2016

---

# Parse error: syntax error

 *  [njretoday](https://wordpress.org/support/users/njretoday/)
 * (@njretoday)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-14/)
 * Parse error: syntax error, unexpected ‘?’ in /home/content/a/u/d/audiper16/html/
   njre/wp-content/themes/deepblue/header.php on line 12
 * site is njretoday
 * I am getting that error on two page tabs, but not on the main site.
 * If you can help, please let me know.
 * **This is what my code looks like: **
 * <title><?php if (is_home () ) { bloginfo(�name�); }
    elseif ( is_category() ){
   single_cat_title(); echo ‘ – ‘ ; bloginfo(�name�); } elseif (is_single() ) { 
   single_post_title();} elseif (is_page() ) { single_post_title();} else { wp_title(
   ��,true); } ?> </title>

Viewing 1 replies (of 1 total)

 *  [PBP_Editor](https://wordpress.org/support/users/pbp_editor/)
 * (@pbp_editor)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-14/#post-1459548)
 * Looks like you are missing some single quotes
 *     ```
       <title><?php if (is_home () ) { bloginfo('name'); }
       elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); }
       elseif (is_single() ) { single_post_title();}
       elseif (is_page() ) { single_post_title();}
       else { wp_title('',true); } ?> </title>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Parse error: syntax error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [PBP_Editor](https://wordpress.org/support/users/pbp_editor/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-14/#post-1459548)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
