WordPress.org

Forums

wp-comments.php displays on main page! (3 posts)

  1. abrazell
    Member
    Posted 10 years ago #

    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 (www.technosailor.com to see my point). Obviously, it should display when the page is called as a permalink, but otherwise, it shouldn't.
    Please help.
    Aaron

  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    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 ?>

  3. abrazell
    Member
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.