Support » Fixing WordPress » wp-comments.php displays on main page!

  • I realize that permalink pages and the main index page use the same file.
    What I don’t understand is why after upgrading from 1.3a2 to 1.3a5, and using the same files, suddenly the inclusion of the wp-comments file is on every entry on the main page ( to see my point). Obviously, it should display when the page is called as a permalink, but otherwise, it shouldn’t.
    Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mark (podz)


    Support Maven

    Did you change your index properly ?
    find this line in index.php
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    That line has to go. If it doesn’t, your comments form will show under every post, so, delete that line, and replace it with this
    <?php comments_template(); // Get wp-comments.php template ?>

    Ahhhh. I did not realize that. That fixed it…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-comments.php displays on main page!’ is closed to new replies.