Support » Fixing WordPress » Comments in Index.php

  • 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


    I have made a slightly more thorough modification to the index page 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.


    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.

    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!

    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.