Support » Fixing WordPress » How to realize conditional “if_comment_exists”?
9 years, 5 months ago
There are various way to display a comment invitation, but how can I realize something like that:
I was in search of a conditional-tag telling me whether there are or not comments, but I did not find anything. Any help on this?
<?php if($post->comment_count > 0) : ?>
<a href="<?php the_permalink() ?>#comments" ><img src="IMAGE-GOES-HERE" style="border: 0;" /></a>
<?php else : ?>
<?php endif; ?></p>