WordPress.org

Support

Support » How-To and Troubleshooting » have_comments() returns false [with comments_template()]

have_comments() returns false [with comments_template()]

  • marianograndioso
    Member

    @marianograndioso

    I’m working on my custom wordpress theme and I got stuck on the comments. Actually, I just copied the code for the comments template and the 3 functions from this tutorial.

    I found a solution that says I should call the template with comments_template() instead of the general include method and that is how I do it. It still doesn’t show a single comment, even though get_comments_number() returns 2 and I see the comments in the dashboard.

    Any ideas ?

  • The topic ‘have_comments() returns false [with comments_template()]’ is closed to new replies.