Clean Archives Reloaded
Hide comment count (4 posts)

  1. roseba
    Posted 4 years 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.


  2. Alex Mills (Viper007Bond)
    Plugin Author

    Posted 4 years ago #

    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 )
  3. mbauerHaL
    Posted 3 years ago #

    What if I did not want to show comment count at all? Is that doable?

  4. rdantas
    Posted 3 years ago #

    Much better this way...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Clean Archives Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic