Title: Parse error: syntax error, unexpected &#8216;&lt;&#8216;
Last modified: August 19, 2016

---

# Parse error: syntax error, unexpected ‘<‘

 *  [pseudonormicks](https://wordpress.org/support/users/pseudonormicks/)
 * (@pseudonormicks)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-lt-1/)
 * Hi,
 * I’m getting the following error after updating my functions.php
 * “Parse error: syntax error, unexpected ‘<‘ in /home/user/lavinmirchandani.com/
   wordpress/wp-content/themes/monotone/functions.php on line 31”
 * I However there is no ‘<‘ on line 31 when I see this code on dreamweaver. I have
   pasted lines 30 -35 below; line 31 has been boldfaced.
 * The error persists even after I replaced the functions.php file with the original
   file from the theme.
 * Please help!
    Thanks.
 *     ```
       <?php
       		while ( have_posts() ) : the_post();
       			// ececute the specific stylesheet
       			print_stylesheet();
       			// determine if an image is vertical or not
       			if(is_vertical(the_image_url(true))) { $vertical = true; }
        		endwhile; rewind_posts(); ?>
       		</style>
       	<?php endif;
       }
       <strong>
       // remove image tag from post_content for display</strong>
       function image_scrape($entry) {
       	// don't scrape the image for the feed
       	if (is_feed()) { return $entry; }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [pseudonormicks](https://wordpress.org/support/users/pseudonormicks/)
 * (@pseudonormicks)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-lt-1/#post-1086258)
 * P.S.: the ‘** **‘ is not a part of my code – just placed for convenience of spotting
   line 31
 *  Thread Starter [pseudonormicks](https://wordpress.org/support/users/pseudonormicks/)
 * (@pseudonormicks)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-lt-1/#post-1086265)
 * Issue sorted!
    The admin frontend editor was showing a wrong code- there was 
   actually an extra ‘<‘ in the file- it seems the file did not get updated properly.
 * Issue closed.
 * Thanks.
 *  [dianecox](https://wordpress.org/support/users/dianecox/)
 * (@dianecox)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-lt-1/#post-1086567)
 * I’m having exactly the same problem with a brand new installation of WordPress
   2.91, although mine is in a different location.
 * Parse error: syntax error, unexpected ‘<‘ in /home/inyourwildes/www/www/wp-includes/
   default-filters.php on line 229
 * When I review the file with my ftp editor, there is no unexpected ‘<‘ that I 
   can see.

Viewing 3 replies - 1 through 3 (of 3 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [dianecox](https://wordpress.org/support/users/dianecox/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-lt-1/#post-1086567)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
