WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Displaying no comments heading? (3 posts)

  1. Tanya
    Member
    Posted 4 years ago #

    I'm not sure why this doesn't work or if I've just got it all wrong. I want a heading at the bottom of my posts to display when there are no comments.

    At the moment I have the code:

    <?php comments_number('No comments... Be the first!', 'One comment', '% comments... <span>Read them below or <a href="#respond">add one</a></span>' );?>

    I thought that this would display "No comments... Be the first!", but it does not.
    My website is http://www.peterahrens.com.au.

    Any ideas?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. Tanya
    Member
    Posted 4 years ago #

    Thanks for that. I was displaying it within the loop. All fixed now!:)

Topic Closed

This topic has been closed to new replies.

About this Topic