• I can’t get the comments to display for posts. I’ve enabled comments for posts and settings – discussion in admin and am using wp_list_comments(). I’ve also tried using get_comments() but that doesn’t work either.

    I’m using a theme I’ve created myself, would this be the problem? If so how do I make it compatible for commenting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you add <?php comments_template(); ?> in single.php?
    http://codex.wordpress.org/Function_Reference/comments_template

    Thread Starter wp_fish

    (@wp_fish)

    Hey that works! it renders the comments and form and it also triggers the functions that I had on the same page, wp_list_comments() and get_comments(), so now I have two forms and several comments.

    I would rather use the functions I mentioned as I have more control. Can I use comments_template() so that the other functions do their bit without the duplication?

    What you could do is to create comments.php and use your function.
    See the comments.php from TwentyEleven theme and you will get some ideas.

    Let me know if you have any further questions 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comments won't show’ is closed to new replies.