WordPress.org

Support

Support » Plugins and Hacks » Hacks » Help with comments_popup_link

Help with comments_popup_link

  • I am using the comments_popup_link to display the comment count for posts on both pages and at the top of posts in the following manner:

    <!-- commentcount -->
    <?php
    if ( comments_open() ) :
      echo '<p>';
      comments_popup_link( '', '<span class="onecomment">1 comment</span>', '<span class="morecomments">% comments</span>', '');
      echo '</p>';
    endif;
    ?>
    <!-- end commentcount -->

    It works fine with one exception. If I close the comments after a set time period the comment popup link will disappear from both pages and posts after the time has passed.
    I would like to keep the comment count displaying even after the comments are closed.
    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Help with comments_popup_link’ is closed to new replies.