Title: index.php code has error
Last modified: August 30, 2016

---

# index.php code has error

 *  [TorMenIsaN](https://wordpress.org/support/users/tormenisan/)
 * (@tormenisan)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/indexphp-code-has-error/)
 * Hi,
 * Yes, it’s true, I’m still learning. So, please be kind.
 * I’ve messed up my index.php code and would love someone to help me by sending
   the code that goes with the original theme. I just need to check the code I have
   and see if this is the true problem.
 * The problem happened after I compressed files.
 * When I connect my posts page to my posts, I get this at the top of the page …
 * /** * The main template file * * This is the most generic template file in a 
   WordPress theme and one of the * two required files for a theme (the other being
   style.css). * It is used to display a page when nothing more specific matches
   a query. * For example, it puts together the home page when no home.php file 
   exists. * * [@link](https://wordpress.org/support/users/link/) [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)**
   [@package](https://wordpress.org/support/users/package/) i-excel * [@since](https://wordpress.org/support/users/since/)
   i-excel 1.0 */ get_header(); ?>

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

 *  Thread Starter [TorMenIsaN](https://wordpress.org/support/users/tormenisan/)
 * (@tormenisan)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/indexphp-code-has-error/#post-6434415)
 * Nevermind, finally solved my problem. I was missing <?php in my index.php file.
 *  Theme Author [marsian](https://wordpress.org/support/users/marsian/)
 * (@marsian)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/indexphp-code-has-error/#post-6434482)
 * in case of any issue you can always comeback here and download a fresh copy press
   the “download” button on theme page [https://wordpress.org/themes/i-excel/](https://wordpress.org/themes/i-excel/)

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

The topic ‘index.php code has error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/i-excel/1.7.9/screenshot.png)
 * i-excel
 * [Support Threads](https://wordpress.org/support/theme/i-excel/)
 * [Active Topics](https://wordpress.org/support/theme/i-excel/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/i-excel/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/i-excel/reviews/)

## Tags

 * [CODE problem](https://wordpress.org/support/topic-tag/code-problem/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)

 * 2 replies
 * 2 participants
 * Last reply from: [marsian](https://wordpress.org/support/users/marsian/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/indexphp-code-has-error/#post-6434482)
 * Status: not resolved