On: 2008/08/09 Viewed: 68160 times
Shorter URL for this page: http://ozh.in/kn

Liz Strauss Comment Counter is a highly configurable "internet badge" that shows the number of comments your WordPress blog has. Use it either to show off how social your blog is, as an incentive for commenters to be part of it, or just because it's fun :)

Live example: Comment count on planetOzh

This plugin was made in honor of Liz Strauss from Successful Blog and her dedication to building community and fostering interaction between a blog and its audience. Extra credits go to Lorelle for inspiration and networking, and obviously to Feedburner for being so seminal in cool web badges showing off.


Performance: the plugin generates a static image every time a comment is left (or an admin moderates one). The benefit is that, when showing the badge, nothing dynamic is generated on the fly by the webserver.

Failover: if for some reason your server was not able to generate a static image (write permissions or whatever) the plugin falls back to generating the badge on the fly, so you always have something to show.

Minimal overhead: state of the art code that loads only when needed, and the plugin adds a grand total of zero extra database query.

Compatibility: the admin interface either runs as a widget (with no extra "Settings" page created) or as a traditional plugin.

Flexibility: just like your Feedburner badge, except there's more options!

Neat interface: one click color presets, killer Farbtastic color picker, and cute FamFamFam icons

Ready for translation: polyglots, a .pot file is included. If you happen to translate the plugin, be sure to send me your work so I can include it in the archive! (Please send your .mo and .po files to ozh at planetozh dot com). Currently the plugin has flavors in Italian (thanks to Gianni Diurno), Russian (thanks to Fat Cow), Belorussian (thanks to ilyuha) and German (thanks to Design Contest).

Fun: well yes, it's just fun to show how many comments you have :)

Screenshots of the admin interface

General view of the interface:

Super hot color picker :

Color presets if you're not sure what colors to start with:


Download the plugin :
Liz Comment Counter by Ozh
Extract and upload to your blog, preserving directory structure.


If your theme is widget aware, head to "Design / Widgets" and add the widget to your sidebar

If your theme is not widget aware:

  1. edit the beginning of the main plugin file (wp_ozh_lcc.php) and replace define('LCC_AS_PLUGIN_ONLY', false); with: define('LCC_AS_PLUGIN_ONLY', true);
  2. in your theme's sidebar.php, add <?php if (function_exists('wp_ozh_lcc_badge')) wp_ozh_lcc_badge(); ?> where you want the badge to appear
  3. go to "Settings / Liz Comment Counter" and have fun with the options


Why show my comment count?
As you want. Either because it's fun, egoboosting, an incentive for others to participate, an indication of the "socialness" of your blog. And, anyway, because it's fun:)

Where is the static badge saved?
In your uploads directory, typically wp-content/uploads/cmt_badge/cmt_badge.png

How do I manually insert the badge in a document?
Like this:
<?php if (function_exists('wp_ozh_lcc_badge')) wp_ozh_lcc_badge(); ?>

What version of WordPress is this for?
Anything from 2.5 and above will be fine.

Who is Liz Strauss?
I'll let her answer: About Liz Strauss. If you are looking to build connections and conversation or to grow a community of fiercely loyal fans, Liz is the person to see. Check her blog!

Who are you?
I make WordPress Plugins!

I love this plugin, how can I say thanks?
Make my day: blog about the plugin and let your readers know about it. Make Liz' day: read her blog and comment!

Why are comments closed?
Because for some reason this page is attracting a number of idiots. Sorry if you wanted to say thanks :-)

Shorter URL

Want to share or tweet this page? Please use this short URL: http://ozh.in/kn


This page "Liz Strauss Comment Counter, a WordPress Widget By Ozh" was posted on 09/08/2008 at 10:01 pm

110 Blablas

  1. HotForWords says:

    I added your comment counter to my website, and changed it around a little.. I made the whole counter clickable to take the person to your website. I also made it larger to fit in my sidebar better.. but FOR THE LIFE OF ME… I cannot figure out how to make the font bigger in the outputted image.

    Can you tell me how to do that?

    My website is at http://www.hotforwords.com and the widget is on the top of the right sidebar.

    Thanks so much!!


  2. Ozh says:

    HotForWords » Wow, you got to be the first installer of this plugin! :)
    I think what you want is edit and modify function wp_ozh_lcc_badge_makebadge() (it's enough commented to let you know what to modify)

  3. HotForWords says:


    I played around with those numbers and I found that I had to switch to the built-in font otherwise the larger fonts looked horrible. So, I "sort-of" have it working now.. doesn't look that great but at least it's bigger.

    I noticed you had code for css badge.. any plans on making that work? Might be easier to style.

  4. Ozh says:

    Actually I dropped the idea of using a CSS badge because it's much much less flexible and potentially a nightmare to integrate into a site because of any element that can inherit from other style.

  5. HotForWords says:

    True about the inherited css… I always have problems with that!

  6. […] Liz Comment Counter […]

  7. Leonaut.com says:

    Liz Strauss Comment Counter…

    Liz Strauss Comment Counter is a highly configurable badge (very similar to the Feedburner one, except it's more configurable) to show off the number of comments your blog has….

  8. baron says:

    hi. Thanks for plugin



  9. redrabbit says:

    Hey, Liz

    This is a pretty cool feature, I will implement on my site now. http://www.skateass.com/wordpress
    Does it matter what version of wordpress you are running, or is it compatible with all versions of wordpress?

  10. Ozh says:

    redrabbit » will work with 2.5+

  11. redrabbit says:

    alright, great thanks.

  12. Liz Strauss says:

    Hi Ozh,
    This has be the most fun plugin I've ever seen. I could spend hours just making versions of how I want the badge to look — it's almost deliciously evil that way. Thanks for making it so fun!

  13. Mid says:

    I think the plugin named "Comment Count" is better – sometimes i want have a plain text, like [i]We have [b]6543[/b] comments on this blog[/i].

  14. Ozh says:

    Mid » yeah but does it allow to generate such a cool badge?
    Cool suggestion though. I will a template tag to just output plain text comment count.

  15. m.o.m. says:

    Great! Another nice and usefull Plugin from Ozh!
    Thank you!

  16. […] alle Statistik-Freaks gibt es jetzt eine sehr nette Spielerei. Mit Hilfe vom Liz Strauss Comment Counter kann man seine Gesamtkommentare im Blog anzeigen lassen. Das ganze lässt sich im […]

  17. Ajay says:


    Two points:

    1. Why the need to edit the plugin file at the top to set it to Plugin Only? Why not just have the function anyway?

    2. Maybe you can add an option to link the comments to the comments RSS feed?

  18. Ozh says:

    Ajay » I elected to do it this way so they're no extra page created if it's a widget, which should be suitable for the majority of users.
    Nice suggestion about linking to comment feed, I'll add it!

  19. Gilly says:

    Thx! This Plugin is awesome!

  20. […] eso con el plugin para WordPress Liz Strauss Comment Counter podremos enseñar los comentarios de nuestro blog al más puro estilo Feedburner. Se puede […]

  21. […] : Liz Strauss Comment Counter. Configuración del plugin Tags: plugin comments, plugin wordpress, plugins para wodpress, wp […]

  22. […] everyday, then you can display the total comment count on your blog.  The plugin called as Liz Strauss Comment Counter is a highly configurable badge that shows the number of comments your WordPress blog has. The […]

  23. Rajesh says:

    Why are you not using it here on your blog?

  24. Ozh says:

    Rajesh » Actually… it's not "officially" out yet, I'm waiting for a particular blogging superstar to promote it before I announce it on my blog :)

  25. […] par l'auteur de l'excellent plugin d'administration des commentaires que je vous ai recommandé il […]

  26. […] PlanetOzh has created the Liz Strauss Comment Counter by Ozh WordPress Plugin which honors the popular blog conversation expert, Liz Strauss. […]

  27. […] from Planet Ozh, has created the Liz Strauss Comment Counter.2 Simply put, anytime a comment is added to your blog, […]

  28. phototristan says:

    How to I remove the 'get your badge' text under the badge? I've tried unclicking the link back check box but it doesn't remove it.

  29. […] en: gEEK tHE pLANET Link de Descarga: Liz Strauss Comment Counter Link al autor: Planet Ohz Agosto 24th, 2008 Posteado en General por soynacho Esta entrada fue posteada el día Domingo, […]

  30. […] As you may have read it already on Lorelle's blushful announcement, I made a Comment Counter widget for Liz Strauss. […]

  31. soulstaker says:

    Yeah, i have the same problem as phototristan. I can't remove the link to the plugin page, even if i uncheck it on configuration page.

  32. Chip Bennett says:

    Ditto phototristan and soulstaker. The plugin link cannot be disabled. Upon saving settings, the plugin-link setting checkbox re-checked.

  33. kevin rubio says:

    hey this whole stuff is great. I was just browsing and came upon a hot chick. Clicked on it and couldn't stop learning. I really think this a good idea. For some reason its easier for me to learn while watching you then some old teacher. Well I think this great. Heres a word for you brought to you by rubio. Catiwampus. You might want to spell check that. Well good luck and keep teaching.

  34. Ozh says:

    Chip, Soulstaker, tristan » Just uploaded version 1.0.1 which fixes this!

  35. Aouni says:

    Thanx, that's really a good plugin.

  36. phototristan says:

    @Ozh – cool thanks! Works great now.

  37. […] Lorelle VanFossen The Liz Strauss Comment Counter by Ozh WordPress Plugin has been released by PlanetOzh and it is stirring up comment controversy […]

  38. soulstaker says:

    Thanks Ozh, working fine now ;)

  39. Please tell me how to center align this – all my widgets are center aligned and this looks horrid as left justified.

    Thanks so much!

  40. Cath Lawson says:

    This is fantastic Ozh. I came straight over as soon as I read about it on Liz's blog. I'm going to download it now and I'll make sure I tell everyone about it.

  41. Ozh says:

    Kris @ Fresh Focus » This should be taken care of by your theme if it's properly widgetized. If not, you'll need to add the thing within something like <div style="text-align: center;"></div>

  42. I know that – but this is a widget. How do I center align a widget when I can't see the code?

  43. Ozh says:

    Kris @ Fresh Focus » Either manually like in my previous comment, or by contacting the theme author so that they improve their theme.
    For instance, look at the following screenshot: http://i34.tinypic.com/iz9jma.gif
    It's the theme that takes care of alignment (on the right here). It's not the widget's job.
    Basically you'd need to manually edit your sidebar and put something like:

    1. <div style="text-align:center">
    2. <?php wp_ozh_lcc_badge(); ?>
    3. </div>
  44. […] are great tools for making an instant improvement to your blog. And Ozh has just created a new comment counter blog widget, which he has named after Liz […]

  45. […] di fornire un supporto di base ai blogger che affidano a WordPress le loro pubblicazioni online: Liz Comment Counter Plugin by […]

  46. gidibao says:

    Hi Ozh,
    thank you for this great plugin!
    It works like a charm ;-)

    All the best

    Gianni Diurno

  47. […] Télécharger Comment Counter WordPress Plugin >> […]