Title: Parse Error in my wordpress theme file
Last modified: August 19, 2016

---

# Parse Error in my wordpress theme file

 *  [soumyasm](https://wordpress.org/support/users/soumyasm/)
 * (@soumyasm)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-my-wordpress-theme-file/)
 * Hi… i’m a graphic designer attempting to code my first wordpress theme. At the
   moment i’m stuck at a parse error that’s showing up.
 * Parse error: syntax error, unexpected $end in /home/content/s/o/u/soumyasm/html/
   mywordpress/wp-content/themes/My Website New WordPress Theme/index.php on line
   45
 * On googling i found that it may be because of an open curly bracket… so i checked
   for it and went over the code again and again… but i can’t really figure out 
   where the problem is. Any help please!
 * This is the index file and line 45 is the last line that says get footer…
 * _[code moderated according to [forum rules ](http://codex.wordpress.org/Forum_Welcome)-
   please use the [pastebin](http://pastebin.com/)]_

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

 *  [Abhishek Jain](https://wordpress.org/support/users/wrool/)
 * (@wrool)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-my-wordpress-theme-file/#post-2051029)
 * its simple you forgot to add a endif statement 🙂
 * _[please [mark the code using the ‘code’ button ](http://codex.wordpress.org/Forum_Welcome#Posting_Code)–
   and please use the [pastebin ](http://pastebin.com/)for any code longer than 
   10 lines]_
 *     ```
       </div><!-- post ends --> 
   
                       <?php endwhile; ?>
       //this is where you forgot!
       		<?php endif; ?>
               </div><!-- main ends -->
   
       <?php get_sidebar(); ?>
   
       <?php get_footer(); ?>
       ```
   
 *  Thread Starter [soumyasm](https://wordpress.org/support/users/soumyasm/)
 * (@soumyasm)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-my-wordpress-theme-file/#post-2051034)
 * Got it! Thanks so much!
 *  [Abhishek Jain](https://wordpress.org/support/users/wrool/)
 * (@wrool)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-my-wordpress-theme-file/#post-2051035)
 * you r welcome 🙂

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

The topic ‘Parse Error in my wordpress theme file’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Abhishek Jain](https://wordpress.org/support/users/wrool/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/parse-error-in-my-wordpress-theme-file/#post-2051035)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
