WordPress.org

Forums

[resolved] Comments not appearing in post (3 posts)

  1. gabriellecomte
    Member
    Posted 2 years ago #

    I created my own tempate, but I can't find the way to call the comments only in the post page, not in the homepage. How could I do it?

    My blog is http://www.tictech.org

  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    use <?php comments_template(); ?> in single.php of your theme;

    or add it in the loop of index.php; if absolutely necessary, wrap it in a conditional statement, like:

    <?php if( is_singular() ) comments_template(); ?>

    http://codex.wordpress.org/Function_Reference/comments_template

  3. gabriellecomte
    Member
    Posted 2 years ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic