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

---

# Parse error: syntax error

 *  Resolved [kkappleby](https://wordpress.org/support/users/kkappleby/)
 * (@kkappleby)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/)
 * I’m receiving this error: Parse error: syntax error, unexpected ‘<‘ in /home/
   content/02/7387602/html/wednesday-words/wp-content/themes/wordsmith-blog/functions.
   php on line 18
 * Can anyone tell me how to fix it?
 * Was trying to put some code into the function.php for “nrelate” and received 
   this error.
 * site: [http://wednesday-words.com](http://wednesday-words.com).
 * kk

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

 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334518)
 * If you have a copy put the functions.php code up on [http://pastebin.com](http://pastebin.com),
   paste the link back in a reply, then we can see what the error is.
 * Use ftp download the functions.php file edit the code and upload it.
 * Use your ISP Control Panel > File Manager, navigate to the themes folder and 
   download the file, edit and uploadit again.
 * HTH
 * David
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334519)
 * Switch to the Twenty Eleven theme by renaming your current theme’s folder in 
   wp-content/themes and adding “-old” to the end of the folder name using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides. That should get you
   back into your site. Then either undo the changes you made to your old theme 
   or delete and re-upload it.
 *  Thread Starter [kkappleby](https://wordpress.org/support/users/kkappleby/)
 * (@kkappleby)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334520)
 * Below is the code.
 * _[220 lines of code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [kkappleby](https://wordpress.org/support/users/kkappleby/)
 * (@kkappleby)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334525)
 * sorry won’t do that again
 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334527)
 * Assuming this is the code you added?
    _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Missing Braces for the first if statement, preffered : and endif; to {}
    UNTESTED_[
   Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Also
 *     ```
       /*End of Theme Options =======================================*/
       ?>
       ```
   
 * Always leave the php open **only in functions.php**
 *     ```
       /*End of Theme Options =======================================*/
       ```
   
 * HTH
 * David
 *  Thread Starter [kkappleby](https://wordpress.org/support/users/kkappleby/)
 * (@kkappleby)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334534)
 * here’s the link for pastebin
 * [http://pastebin.com/u/kkappleby](http://pastebin.com/u/kkappleby)
 * kk
 *  Thread Starter [kkappleby](https://wordpress.org/support/users/kkappleby/)
 * (@kkappleby)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334551)
 * Thanks all, it is now fixed. Used the ISP Control Panel > File Manager, navigate
   to the themes folder and download the file, edit and uploadit again and it works.
 * Great help and learned about the pastebin, awesome.
 * kk
 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334574)
 * Hi kk,
    Glad we could help and you have it fixed.
 * Going forward it might be worthwhile creating a local install of WordPress, then
   use it as a sandbox for testing themes, plugins, and upgrades, before deploying
   them to your live environment.
 * There is [XAMPP](http://www.apachefriends.org/en/xampp.html) for all operting
   systems.
 * I prefer [InstantWP](http://www.instantwp.com/) for Windows as it installs and
   alters nothing in the environment or registry.
 * InstantWP also sell an ebook for beginners covering updating and deploying files
   from a local install to a production environment.
 * I am not affiliated or associated with InstantWP it is just an easy way to have
   a local WordPress without installing anything that alters the registry.
 * Using WordPress Admin for Exporting and Importing your website data into a local
   install is really quite easy as well.
 * Saves the website from being off line and visitor getting a bad experience with
   fatal errors.
 * HTH
 * David

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

The topic ‘Parse error: syntax error’ 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
 * 3 participants
 * Last reply from: [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-35/#post-2334574)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
