Title: Parse error: syntax error, unexpected &#039;}&#039; in
Last modified: August 21, 2016

---

# Parse error: syntax error, unexpected '}' in

 *  Resolved [delas](https://wordpress.org/support/users/delas/)
 * (@delas)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/)
 * Hello everyone,
 * Hello to all the coders, I’m getting this error in category-property.php file(
   Parse error: syntax error, unexpected ‘}’ in /home/maison/domains/abidjanresidence.
   net/public_html/wp-content/themes/home/category-property.php on line 28 and i
   cant figure out that the problem is. I’ve taken things out put things in, still
   no go. So i would greatly appreciate your help in this matter.
 * here is the code: [http://pastebin.com/NS4jPy27](http://pastebin.com/NS4jPy27)

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712719)
 * your code is partially broken because it was posted without being marked as code;
 * please paste the code into a pastebin – [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)–
   this has the added advantage of showing line numbers.
 *  Thread Starter [delas](https://wordpress.org/support/users/delas/)
 * (@delas)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712770)
 * I spent hours checking the forum but I could not find anything that could help
   me. I am new to PHP.
 *  [Andrew Bartel](https://wordpress.org/support/users/andrew-bartel/)
 * (@andrew-bartel)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712772)
 * Delas, can you copy it out of the file exactly and mark the syntax highlighting
   as php please?
 * Also, can you just upload a fresh copy of category-property.php?
 * This is a really good example of why you should always make a [child theme](http://codex.wordpress.org/Child_Themes).
 *  Thread Starter [delas](https://wordpress.org/support/users/delas/)
 * (@delas)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712786)
 * Andrew, I have not succeed in highlighting it like you asked but this is Line
   28. I hope this can help.
 * _[ Moderator Note: [Please post code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   or markup snippets between backticks or use the code button. ]_
 *     ```
       ?><?php} else  { echo'<a href="'.get_permalink().'">'.multisearch($post->ID,'medium').'</a>'; }?>
       ```
   
 *  Thread Starter [delas](https://wordpress.org/support/users/delas/)
 * (@delas)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712792)
 * Hello again Andrew,
 * I think I succeeded in highlighting it.
    _ [code removed - please see the above
   posts]
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712795)
 * **[@delas](https://wordpress.org/support/users/delas/)** – please see the above
   posts re: posting code here – again, you cannot post code here that way – it 
   gets corrupted and it messes up the forums. **Please use a pastebin.**
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712853)
 * try and add a space after `<?php`:
 * `?><?php } else { echo'<a href="'.get_permalink().'">'.multisearch($post->ID,'
   medium').'</a>'; }?>`
 * possibly review:
    [http://make.wordpress.org/core/handbook/coding-standards/php/](http://make.wordpress.org/core/handbook/coding-standards/php/)
 *  Thread Starter [delas](https://wordpress.org/support/users/delas/)
 * (@delas)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712937)
 * Hello Alchymyth,
 * I don’t know how to think you.
    This is great. you have saved my life. Thank 
   you soooo much
 * Cheers
    Delas

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

The topic ‘Parse error: syntax error, unexpected '}' in’ 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/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [delas](https://wordpress.org/support/users/delas/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-in-3/#post-3712937)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
