Wordpress Plugin: Month Comment Count
22.01.07 @ 12:01 amThis is the first Wordpress plugin I have ever made, let alone released for download, so please, be gentle. I needed a plugin for my blog to count the total comments for each month to determine each month’s Comment Love donation. I looked high and low for a plugin to do just that, but I was unable to find one. I then decided I might as well make it myself as it really was not much of a feat in the first place.
The plugin is very basic - the function takes in two parameters, the year and the month you want the comments from. If either fields are left blank, it will default to the current month.
If you want the current month’s comment total, all you need to do is call the function without any parameters.
<?php monthCommentCount(); ?>
If you want a specific month, just put in the year and the month in question like below:
<?php monthCommentCount(2006, 3)); ?>
The function prints the total number of comments - nothing more, nothing less. I may be making some additional plugins along this genre, so there could be additional downloads available. Until then, enjoy this particular plugin if it is of any use to you.
Download & Instructions
Download Month Comment Count Plugin
- Right-click/Command-click on the link above and rename the extension from ‘phps’ to ‘php’.
- Upload the file to the ‘plugins’ directory within your ‘wp-content’ directory.
- Activate the plugin from the ‘Plugins’ section of your Wordpress admin area.
- Use the code examples above as reference for use.
- Show off how many more comments you get per month than me.
Enjoy.blogging, blogging plugin, comment count plugin, comments, month comment count, plugin, show off your comments, wordpress, wordpress plugin you get so many more comments than me

January 23rd, 2007 at 11:12 am
$0.00 in Comment Love for November
I dont have Wordpress but I can imagine this plugin being pretty useful for those (displaying more selective content) who do.
Well done PJ!
April 6th, 2007 at 4:05 pm
$0.00 in Comment Love for November
I’ve been thinking of implementing something similar to your comment donation thing that you’ve setup here ever since I found your site. Brilliant idea to get the people contributing.
Perhaps extending the comment count feature where it ignore the owner’s own comments? Am looking forward to the rest of the plugins in the future. Cheers.
April 6th, 2007 at 4:39 pm
Thanks for the comment Hinching. I actually already do not count my comments when calculating the donations for each month - I basically modified it for my own purposes. I really do hope you do in fact implement something like this on your blog. Let me know if you do.
April 16th, 2007 at 3:10 am
$0.00 in Comment Love for November
Hi there!
I was looking for a comment counter plugin and I found yours.
Tell me something, please:
If I put it will count all the comments of that year?
And if I want it to count all the comments from now on? Is it possible to set the plugin to count several years? Something like this , for example?
What I want it to do is to count all the comments that have been made in all my website.
I hope you can help me.
Thanks!
And good work!
Ricardo
May 19th, 2007 at 11:57 pm
$3.00 in Comment Love for November
[…] Visit […]
July 18th, 2007 at 1:55 am
$0.00 in Comment Love for November
thanks for the plugin, a very usefull solution.
September 27th, 2007 at 10:02 am
$0.00 in Comment Love for November
this plugin is great, i have blog in Wordpress and this plugin work well
October 8th, 2007 at 4:34 pm
$0.00 in Comment Love for November
Quick question for you. I have a wordpress blog, but its hosted at wordpress.com, not on my own server or anything.
Is there anyway for me to add plugins using wordpress.com?