WordPress.org

Ready to get started?Download WordPress

Forums

Comments not displaying 'no comments' (1 post)

  1. gashface
    Member
    Posted 2 years ago #

    Using the twenty eleven comment template and it does not display when there are no comments on a post. The posts require you register to post a comment, but otherwise I've changed nothing that should alter this, help?

    <?php
    		/* If there are no comments and comments are closed, let's leave a little note, shall we?
    		 * But we don't want the note on pages or post types that do not support comments.
    		 */
    		elseif ( ! comments_open() && ! is_page() && post_type_supports( get_post_type(), 'comments' ) ) :
    	?>
    		<p class="nocomments"><?php _e( 'There are currently no comments.', 'blueandgreen' ); ?></p>
    	<?php endif; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic