WordPress.org

Support

Support » How-To and Troubleshooting » Removing link for disabled comments?

Removing link for disabled comments?

  • Okay. Lowdown here, is that I have comments disabled on my most recent entry – http://xuan.greyclouds.net/

    Thing is, on the front page, the link still shows up with “No comments” (to the right of the categories meta), instead of just plain grey text that says “Comments off”. Here’s the bit of configuration code in index.php …

    <?php comments_popup_link('No Comments', '1 Comment', '% Comments','comments-link ','Comments off'); ?>

    Any ideas how I could remedy this? Thanks in advance! =]

Viewing 1 replies (of 1 total)
  • Jeremy Clark

    @jeremyclark13

    Member

    Try this instead.

    <?php if ('open' == $post->comment_status) : ?>
    <?php comments_popup_link('No Comments', '1 Comment', '% Comments','comments-link ','Comments off'); ?>
    <?php else : ?>
    Comments Off
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Removing link for disabled comments?’ is closed to new replies.