• [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)
  • What DOES get displayed when you disable comments?
    Which theme are you using?

    Thread Starter swoopor

    (@swoopor)

    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” ?

    Thread Starter swoopor

    (@swoopor)

    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 } ?>

    Thread Starter swoopor

    (@swoopor)

    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.