What DOES get displayed when you disable comments?
Which theme are you using?
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
“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” ?
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?!
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 } ?>
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; ?>