check out this site:
http://superpospolita.pl/
there is a red little box next to the date with the number of comments inside of it.
check out this site:
http://superpospolita.pl/
there is a red little box next to the date with the number of comments inside of it.
Please!
Here's the php:
<ul class="nadtytul">
<?php
$comment_count = get_comment_count($post->ID);
if ($comment_count['approved'] > 0) :
?>
<li class="odpowiedzi"><a href="<?php echo get_permalink(); ?>#comments"><?php comments_number('Comment', '1<span> comment</span>', '%<span> comments</span>'); ?></a></li>
<?php endif; ?>
<li><?php the_time('j M Y') ?></li>
</ul>
It displays the comment box only if there are comments.
The styling of the box is done with CSS. If you want to know how, look into the CSS file on the page.
This topic has been closed to new replies.