Support » Plugin: Clean Archives Reloaded » [Plugin: Clean Archives Reloaded] Hide comment count

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alex Mills (Viper007Bond)

    (@viper007bond)

    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 )
    mbauerHaL

    (@mbauerhal)

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

    rdantas

    (@rdantas)

    Much better this way…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Clean Archives Reloaded] Hide comment count’ is closed to new replies.