Tried the search button but with "comments, number" it's hard to find what I'm looking for.
Is there a plugin that displays the number of comments in the headline or somewhere better visible?
Thanks for any suggestions!
Tried the search button but with "comments, number" it's hard to find what I'm looking for.
Is there a plugin that displays the number of comments in the headline or somewhere better visible?
Thanks for any suggestions!
these kind of modifications are usually done by editing the templates of your theme.
link to your site?
I'm using the well-known Twenty Ten http://wordpress.org/extend/themes/twentyten
It displays the number of comments at the end of the byline, below the article.
I would like it like here, where the number of comments is below the headline.
Thanks for any suggestion!
edit loop.php:
find this (about line 133; the one occurence nearest to the end):
<div class="entry-meta">
<?php twentyten_posted_on(); ?>
</div><!-- .entry-meta -->
change it to:
<div class="entry-meta">
<?php twentyten_posted_on(); ?><span class="meta-sep"> | </span><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?>
</div><!-- .entry-meta -->
(this is basically the 'comment code' copied from lower down; and a separator)
further down - find this:
<span class="meta-sep">|</span>
<?php endif; ?>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
change it into:
<!--<span class="meta-sep">|</span>-->
<?php endif; ?>
<!--<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>-->
basically commenting the un-needed code sections.
make backup copies before editing;
and be aware that twenty ten will be overwritten with the next upgrade. consider http://codex.wordpress.org/Child_Themes
Thanks alchymyth, this worked great, it's exactly what I wanted!
This topic has been closed to new replies.