Title: Parse Error Syntax
Last modified: August 21, 2016

---

# Parse Error Syntax

 *  Resolved [remoteid3](https://wordpress.org/support/users/remoteid3/)
 * (@remoteid3)
 * [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-1/)
 * Hi,
 * I was trying to add shortcode to limit number pf posts in theme function php (
   editor), I added the code then deleted this line and the error (Parse error: 
   syntax error, unexpected ‘<‘ in /home/content/r/e/m/remoteid2/html/wp-content/
   themes/yoko/functions.php on line 58) comes up in the browser window.
    I have
   gone back to check the php code again and tried to update after removal of the
   shortcode (<?php echo do_shortcode(“[ic_add_posts showposts=’5′]”); ?) I have
   obviously made an error in where I placed the code but cannot get the site to
   work at all now or dashboard. Can you please offer some assistance.
 * Kind Regards
 * Brenton

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-1/#post-3785280)
 * can you access the functions.php file from the server, using FTP or the file 
   management system of your hoster? [http://codex.wordpress.org/FTP_Clients](http://codex.wordpress.org/FTP_Clients)
 * please post the full code of functions.php of your theme;
    (please use the pastebin–
   [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)–
   and post the link to your pastebin here)
 * the code you tried to add into functions.php is not generally the kind of code
   you would use in a functions template; what plugin does the shortcode belong 
   to?
 * to get back into your site, try to temporarily rename the theme’s folder (using
   FTP); this should activate the default theme and allow you to get back into the
   dashboard.
 * you should then be able to check the functions.php file, and repair it or replace
   it with a new copy from your theme; you can then rename the theme’s folder back
   to its original name, and hopefully reactive your theme.
 *  Thread Starter [remoteid3](https://wordpress.org/support/users/remoteid3/)
 * (@remoteid3)
 * [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-1/#post-3785282)
 * Thanks for this but when logged into ftp server was able to see the code I had
   inserted had not been deleted. Deleted it and now it is all ok.
    thankyou

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

The topic ‘Parse Error Syntax’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [remoteid3](https://wordpress.org/support/users/remoteid3/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/parse-error-syntax-1/#post-3785282)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
