Support » Your WordPress » How do you make comments show ON the page?

  • I have a blog, and I want my comments to show up on the page of the post, right under the blog entry itself, like on babydoll.nu and oh-bebe.net or something. I don’t know which pages to edit or what to put. Please try to explain clearly if you can! ^______^ Help would be appreciated.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You simply need to add comment tags to your template. (see http://codex.wordpress.org/Template_Tags – especially the section on comment tags).

    Depending on how you have your theme set up you should be able to simply add this to the comments.php file in your theme’s directory and then include that file inside The Loop on any of the pages that you want comments to be on.

    So for example, if you want comments to show up on your individual post’s pages add something like the following:


    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    POST TEMPLATE GOES HERE

    <?php comments_template(); ?> THIS WILL SHOW THE CONTENTS OF THE "comments.php" FILE.

    <?php endwhile; else: ?>
    <?php endif; ?>

    Check out the default theme that comes with WordPress to see how this works. Look especially at the comments.php file and the single.php file.

    Eh? Sorry, I didn’t understand that at all. ;_; I don’t have a single.php file. I just want the comments to not appear in a popup window.

    In most themes the popup is off by default. What theme do you have?
    In the header.php there should be a line like this:
    <?php comments_popup_script(); // off by default ?>

    make it like this
    <?php //comments_popup_script(); // off by default ?>
    Notice the “//” in the middle!

    Thanks so much! It worked!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do you make comments show ON the page?’ is closed to new replies.