• Hey gang, I need a little WP PHP help, I’ve searched for an hour with no luck.

    I need to know how you’d write the following statement for my comment count in the post meta line under the title of each post, currently I’m using:

    Comments: <a href="/#comments"><?php comments_number('no responses','one response','% responses'); ?></a>

    But I’d like to exclude the comment count altogether if the post doesn’t allow comments, so basically I need an if statement that says “if the post allows comments then display the above phrase, else don’t”

    Thanks a million…

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Only display comment count if post allows comments’ is closed to new replies.