Title: Comments (No Comments)
Last modified: August 19, 2016

---

# Comments (No Comments)

 *  [wescrock](https://wordpress.org/support/users/wescrock/)
 * (@wescrock)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/comments-no-comments/)
 * I am looking for a way to hide the comments total if there are 0 comments.
 * The reason for this is that I am using the WP instance as a CMS system to host
   media… there are mainly pages, but all media contents are in post form. I want
   comments to only be allowed on the media posts and not on the pages.
 * I see:
 *     ```
       <ul class="controls">
         <li class="comments"><?php comments_number('Comments(0)', 'Comments(1)','Comments(%)'); ?></li>
       </ul>
       ```
   
 * Is there a better way to do this? (ps… When I disable comments on the pages, 
   it DOES still show the comment total… I commented out the area where is says:
   `
   <p class="nocomments">Comments are closed.`
 * Thank you,
    Wes

The topic ‘Comments (No Comments)’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Themes](https://wordpress.org/support/topic-tag/themes/)

 * 0 replies
 * 1 participant
 * Last reply from: [wescrock](https://wordpress.org/support/users/wescrock/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/comments-no-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
