Title: Comments in Index.php
Last modified: August 18, 2016

---

# Comments in Index.php

 *  [pizzaman](https://wordpress.org/support/users/pizzaman/)
 * (@pizzaman)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/comments-in-indexphp/)
 * I wanted to have comments show up after each post so here’s what I did.
    Maybe
   the gurus here can add to this or describe an easier way.
 * I went into Kubrick’s comments-popup.php file and found a section that was commented
   as being “the WordPress motor” (line 31). So I copied and pasted the part I needed
   into my index.php It was only maybe 6-7 lines that I copied and placed right 
   after the “content” div.
    I also copied a few lines for the comment loop and 
   IT WORKED!
 * Now I wonder if there is a better way to do this. I tried just putting a comment
   loop in but nothing showed.

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

 *  [numist](https://wordpress.org/support/users/numist/)
 * (@numist)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comments-in-indexphp/#post-204888)
 * I have made a [slightly more thorough modification to the index page](http://numist.net/blog/comments-on-index/)
   that I have documented and made available for use.
 * Also, it seems that the default theme’s page system was incomplete — you can’t
   comment on pages — which I also have a modification available to fix (on the 
   same page linked above).
 * I hope this helps out other people interested in skinning and modifying the behaviour
   of their WordPress blogs.
 * ./scott
 *  [ptp](https://wordpress.org/support/users/ptp/)
 * (@ptp)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/comments-in-indexphp/#post-204893)
 * So, I’m hoping for a little help here. When I download the index.phps and put
   it in the default theme’s directory, nothing happens, and if I rename it to index.
   php, I just get a page displaying code, instead of an actual default page… I’m
   wondering if anyone can tell me what I’m doing wrong. I’ve checked the permissions,
   and it’s executable by all, so I’m not sure what I’ve done wrong. Any help would
   be much appreciated.
 *  [ptp](https://wordpress.org/support/users/ptp/)
 * (@ptp)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/comments-in-indexphp/#post-204894)
 * Nevermind. It seems it just didn’t download properly using wget… I’ve got it 
   in there correctly now, and it seems to be working just fine. Great modification,
   it does exactly what I’ve been looking for something to do!
 *  [mksys](https://wordpress.org/support/users/mksys/)
 * (@mksys)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/comments-in-indexphp/#post-204913)
 * Scott, I like what you did, but is there a way to make the default functionality
   that the comments are open initially?

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

The topic ‘Comments in Index.php’ is closed to new replies.

## Tags

 * [index](https://wordpress.org/support/topic-tag/index/)
 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [mksys](https://wordpress.org/support/users/mksys/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/comments-in-indexphp/#post-204913)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
