Title: Syntax Error Unexpected T_String In String Concatination
Last modified: August 20, 2016

---

# Syntax Error Unexpected T_String In String Concatination

 *  Resolved [avil](https://wordpress.org/support/users/avil/)
 * (@avil)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-in-string-concatination/)
 * The syntax error Iam getting while editing the code in my theme’s functions.php
   is on line 88, where I added a new line of code ..
 * Here’s the code :
 * `$popular .= '<a href="<?php the_permalink(); ?>"><img src="<?php echo bloginfo('
   template_url'); ?>/timthumbs.php?src=<?php echo catch_that_image() ?>&w=200&h
   =100&zc=3&q=100" alt="<?php the_title(); ?>" class="footer-thumb" width="200px"
   height="100px" /></a>'`
 * Iam unable to figure out the correct escaping required ..
 * Kindly help ..

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

 *  [SpaceDogDeveloper](https://wordpress.org/support/users/spacedogdeveloper/)
 * (@spacedogdeveloper)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-in-string-concatination/#post-2644254)
 * You have php tags inside a variable. You can’t have more php tags in there.
 * `$popular .= '<a href="><?php somecode(); ?>">` <— wrong
    `$popular .= '<a href
   ="' . somecode() . '">` <—- correct
 * [http://php.net/manual/en/language.operators.string.php](http://php.net/manual/en/language.operators.string.php)
 *  Thread Starter [avil](https://wordpress.org/support/users/avil/)
 * (@avil)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-in-string-concatination/#post-2644413)
 * Thanks SpaceDogDeveloper, got that working.

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

The topic ‘Syntax Error Unexpected T_String In String Concatination’ is closed to
new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [avil](https://wordpress.org/support/users/avil/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/syntax-error-unexpected-t_string-in-string-concatination/#post-2644413)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
