Title: Getting Parse error syntax error unexpected &#039;endwhile&#039; (T_ENDWHILE)
Last modified: September 1, 2016

---

# Getting Parse error syntax error unexpected 'endwhile' (T_ENDWHILE)

 *  Resolved [crystalm36](https://wordpress.org/support/users/crystalm36/)
 * (@crystalm36)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/)
 * I have been trying to work on my next and previous posts opening only in their
   own category and I was editing the template-tags.php and I am now getting this
   error on my site:
    Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE)
   in on line 37
 * I am using the twentyfourteen theme.
    Can anyone help me? Thanks
 * SOLVED:
    I decided to go to ftp and reupload the template-tags.php again and 
   that fixed by problem!

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668817)
 * Access your server via [SFTP or FTP](https://codex.wordpress.org/FTP_Clients),
   or a file manager in your hosting account’s control panel, and edit the file 
   with a [plain text editor](https://codex.wordpress.org/Editing_Files#Text_Editors)
   to remove what you added.
 * You should be able to access your site again after that.
 *  Thread Starter [crystalm36](https://wordpress.org/support/users/crystalm36/)
 * (@crystalm36)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668818)
 * Thank you! It worked!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668820)
 * You’re welcome!
 *  Thread Starter [crystalm36](https://wordpress.org/support/users/crystalm36/)
 * (@crystalm36)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668822)
 * James do you know anything about getting the next and previous posts to open 
   in just the category that it is in? Know what I mean?
 *  Thread Starter [crystalm36](https://wordpress.org/support/users/crystalm36/)
 * (@crystalm36)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668846)
 * That’s ok I found the answer here:
 * [http://adopttheweb.com/2016/03/24/change-twenty-fourteen-next-previous-post-text/](http://adopttheweb.com/2016/03/24/change-twenty-fourteen-next-previous-post-text/)
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668871)
 * Awesome, glad you found it. 🙂
 *  Thread Starter [crystalm36](https://wordpress.org/support/users/crystalm36/)
 * (@crystalm36)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668902)
 * Thanks!
 *  [eshangk](https://wordpress.org/support/users/eshangk/)
 * (@eshangk)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668954)
 * Can either of you walk me through how to log into Filezilla? I have the host 
   as my wordpress domain, the username works, but the password does not. I am completely
   new to this and I have no idea what I’m doing. I just know that I crashed my 
   website all because I was coding CSS and added an extra “.” where it wasn’t supposed
   to be.
 * Please help!! I really don’t know what else to do!
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668955)
 * Hi,
 * Please open a new thread for your questions, as per Forum Guidelines: [https://wordpress.org/support/forum/how-to-and-troubleshooting#postform](https://wordpress.org/support/forum/how-to-and-troubleshooting#postform)
 * And here’s how to use FileZilla: [https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps](https://www.digitalocean.com/community/tutorials/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps)
   🙂
 * Thank you. 🙂

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

The topic ‘Getting Parse error syntax error unexpected 'endwhile' (T_ENDWHILE)’ 
is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/help-getting-parse-error-syntax-error-unexpected-endwhile-t_endwhile/#post-7668955)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
