WordPress.org

Ready to get started?Download WordPress

Forums

Comment Bubble Disappears Even with Comments (2 posts)

  1. MrBobDobolina
    Member
    Posted 2 years ago #

    I am running a child theme of the 2011 WP theme. Just updated to 3.4.1, though I noticed this on 3.4.0 as well.

    I have my blog set to disable comments on posts after 28 days.

    After 28 days, the little comment bubble near the title of each posts disappears, even if there are comments on the post.

    Now I don't mind if the bubble disappears on posts without comments, but I'd like to to stay when there are comments. Is this a bug or is there a setting I need to find and flip?

    Thanks much!

    Site is http://apatheticthursday.net/ if that helps with the investigation.

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    no bug, no setting - you need to edit content.php:

    <?php if ( comments_open() && ! post_password_required() ) : ?>
    			<div class="comments-link">
    				<?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?>
    			</div>
    			<?php endif; ?>

    you also need to consider that comments_popup_link() as it is coded there (not using a custom fifth parameter) will use the default output for closed comments, i.e. 'Comments Off':
    http://codex.wordpress.org/Function_Reference/comments_popup_link

Topic Closed

This topic has been closed to new replies.

About this Topic