roseba
Member
Posted 5 months ago #
I noticed on your demo that you don't have posts diplaying the comment count on posts without comment. On mine, it displays all, even when there are no posts.
Is there a way to suppress that?
I've done that in other areas by changing the code in the theme. Is that what I have to do for this?
I'm displaying this on a page with [cleanarchivesreloaded] embedded on the page, and that's it.
http://wordpress.org/extend/plugins/clean-archives-reloaded/
I don't allow comments on the site that the demo runs on (only pingbacks) so that's why it doesn't show up.
It shows up on my other site though: http://www.viper007bond.com/post-archives/
To hide the count if there's no comments, you'd need to change this line:
if ( '0' != $atts['commentcount'] && ( 0 != $post->comment_count || 'closed' != $post->comment_status ) )
To this:
if ( '0' != $atts['commentcount'] && $post->comment_count > 0 )