WordPress.org

Ready to get started?Download WordPress

Forums

How do you make comments show ON the page? (5 posts)

  1. ParrotPixels
    Member
    Posted 7 years ago #

    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!

  2. anselm1109
    Member
    Posted 7 years ago #

    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.

  3. ParrotPixels
    Member
    Posted 7 years ago #

    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.

  4. moshu
    Member
    Posted 7 years ago #

    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!

  5. ParrotPixels
    Member
    Posted 7 years ago #

    Thanks so much! It worked!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags