Title: comment handling
Last modified: August 18, 2016

---

# comment handling

 *  [swoopor](https://wordpress.org/support/users/swoopor/)
 * (@swoopor)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/)
 * [code]<?php comments_popup_link('zero', 'one', 'more',
    'CSSclass', 'no comments');?
   > [/code]
 * shouldnÂ´t this tiny portion of code be displaying “No Comments” if I disabled
   comments for an entry? well it does not, any clues?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [skippy](https://wordpress.org/support/users/skippy/)
 * (@skippy)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-262845)
 * What DOES get displayed when you disable comments?
    Which theme are you using?
 *  Thread Starter [swoopor](https://wordpress.org/support/users/swoopor/)
 * (@swoopor)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-262967)
 * Zero is being displayed when I disable comments. If, for instance, I close comments
   after 37 comments have been written, 37 is displayed after disabling.
 * I use the source of the kubrick theme but I completely adjusted it to my needs-
   > [click](http://www.kk-works.de/)
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-262968)
 * “If, for instance, I close comments after 37 comments have been written, 37 is
   displayed after disabling.”
 * But that seems correct – maybe you want “No more comments” ?
 *  Thread Starter [swoopor](https://wordpress.org/support/users/swoopor/)
 * (@swoopor)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-262995)
 * Yes podz, that seems about right but if I post smth without even allowing comments
   at all. I got displayed (with the code above) “zero”, which couldnÂ´t be right?!
   Therefor I thought I got the “no comments” part in the comments_popup_link?!
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-262996)
 * This is what I have on my blog. More complicated, but it gets the job done. Plus,
   I wanted a custom `title` for the link.
 * `<?php if ($post->comment_status == 'open') { comments_popup_link('Leave a Comment»','
   1 Comment »', '% Comments »'); } else { ?><a href="<?php the_permalink(); ?>#
   comments" title="Comments are closed for this post, but click to view any trackbacks"
   >Comments Closed</a><?php } ?>`
 *  Thread Starter [swoopor](https://wordpress.org/support/users/swoopor/)
 * (@swoopor)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-263007)
 * thanks that included the idea that I was looking for strange though, that the
   intended way per comments_popup_link does not work at all :/
 * I now write smth like this to achieve this:
 * <?php if (‘open’ == $post->comment_status) : ?>
    <?php comments_popup_link(‘No
   comments yet »’, ‘1 Comment so far »’, ‘% Comments »’); ?> <?php else : ?> Comments
   off <?php endif; ?>

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘comment handling’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [swoopor](https://wordpress.org/support/users/swoopor/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/comment-handling/#post-263007)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
