I'm working on a theme where I'd like the comment string at the end of a post to appear as a phrase, with only the number of comments linked... the equivalent of:
There are no comments on this post.
I also need the text to switch "There are" and "There is" depending on the number of comments, of course.
So here's what I've been working with:
<p>
<?php if($****){ echo "There is ";} else {echo "There are ";} ?>
<a href="<?php comments_link(); ?>">
<?php comments_number('no comments', 'one comment', '% comments');?></a> on this story.
</p>
My problem is, I can't find anything to switch off of -- is there a variable or function I can use to grab the number of comments on a post? Or am I going about this completely wrong way.