• handshake

    (@handshake)


    This is the comments.php code. MT-White is the theme.
    This is well beyond my coding skills.
    Any ideas?

    <div <?php if ( comments_open() ) { ?> id="comments" <?php }?>> <?php if ( post_password_required() ) : ?> <p class="nopassword"> <?php _e('This post is password protected. Enter the password to view any comments.', 'mt-white');?> </p> </div><!-- #comments --> <?php return ; endif; ?>
    <?php if ( havecomments() ) : ?> <h3 id="comments-title"><?php printf(_n('One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'mt-white'), number_format_i18n(get_comments_number()), '<em>' . get_the_title() . '</em>'); ?></h3> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="wp-pagenavi"> <?php paginate_comments_links( array('prev_text' => '? ' . _('Older Comments', 'mt-white'), 'nexttext' => _('Newer Comments', 'mt-white')) . ' ?');?> </div><!-- .navigation --> <?php endif;?>
    <ol class="commentlist"> <?php wplist_comments(array('callback' => 'custom_comments'));?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="wp-pagenavi"> <?php paginate_comments_links( array('prev_text' => '? ' . _('Older Comments', 'mt-white'), 'nexttext' => _('Newer Comments', 'mt-white')) . ' ?');?> </div><!-- .navigation --> <?php endif;?>
    <?php else : if ( ! comments_open() ) :?> <p class="nocomments"> <?php _e('Comments are closed.', 'mt-white');?> </p> <?php endif; // end ! comments_open()?>
    <?php endif; // end have_comments()?>
    <?php comment_form();?>
    </div><!-- #comments -->

  • The topic ‘Make comments show up rather than number of comments on homepage’ is closed to new replies.