I was searching for a suitable plugin but couldn’t find any, so I developed it myself.
The WordPress Plugin “Most Comments” allows you to show the posts with the most comments on a page or in the sidebar as a widget. It’s fully customizable to your needs.
Features
- Limit the amount of posts to be shown
- Show comments from a specific post category
- Exlude posts without comments
- Select a time range (last XX days) of posts to be taken into account
- Customize the design template via the settings page
- Place a widget in your sidebar
Screenshots
- Customize the appearance
- Widget Settings
- How it looks like on my site
- Activate the plugin



baron / October 13, 2008, 7:38 PM
hi. Thanks for plugin
perfect.
Regards
WordPress Plugin Releases for 10/13 | Wordpress Blog NL / October 13, 2008, 8:48 PM
[...] Most Comments [...]
WordPress Plugin Releases for 10/13 | bloground.ro - Blogging resources, WordPress themes and plugins for your development / October 13, 2008, 10:07 PM
[...] to do is copy the file to any directory containing JPG, JPEG, PNG or GIF images to make a gallery. Most Comments Display posts with the most comments, as a widget or on a page using the template tag. Customize [...]
WordPress Plugin Releases for 10/13 | BlogBroker24-7 / October 14, 2008, 2:28 AM
[...] Most Comments [...]
Weblog Tools Collection: WordPress Plugin Releases for 10/13 | KaosKoxp Oyun Portali / October 14, 2008, 2:12 PM
[...] Most Comments [...]
WordPress Plugin Releases for 10/13 | PATRONIT.NET / October 14, 2008, 10:11 PM
[...] Most Comments [...]
WordPress Plugin Releases for 10/13 | PATRON DIGITAL.COM / October 15, 2008, 5:39 PM
[...] Most Comments [...]
Wordpress Plugin “Most Comments” | BRAND INFECTION / October 17, 2008, 10:20 AM
[...] Download WordPress Plugin Most Comments « Abakus Keyword Analyser. A Tool For SEO. [...]
Rarst / October 19, 2008, 12:29 AM
Thanks, excellent plugin and exactly what I was looking for.
My only suggestion is to include parameters for calling function in settings or readme file. I had to look through widget code to figure it out.
Nader / October 19, 2008, 1:09 AM
Thanks for the feedback! I’ll write up a little tutorial and insert it in the readme file.
Michael / November 3, 2008, 4:58 PM
Please help,
I am using WordPress 2.6.3 and the thesis them from pearsonified.
I activitated the “most comments” widget in the widget list. But there is no widget in the widget list.
So I tried a work around to place the html snippet in a text widget box, but that does not work either.
What should I do
Michael
Nader / November 3, 2008, 6:17 PM
Hi Michael,
did you activate the Most Comments Plugin AND the Most Comments Widget?
Did you set all the options in the settings?
Regards, Nader
Michael / November 3, 2008, 8:43 PM
Thanks, now it works
WordPress World - ????, ???????, ?????, ??????, seo. / November 5, 2008, 3:33 PM
[...] Most Comments [...]
Wordpress Plugin: Most Comments « A Guilty Pleasure / November 6, 2008, 5:40 PM
[...] November 6, 2008 via WordPress Plugin: Most Comments (+ Widget) | BRAND INFECTION [...]
Leonaut.com / November 8, 2008, 6:07 PM
WordPress Plugin: Most Comments (+ Widget)…
The WordPress Plugin “Most Comments” allows you to show the posts with the most comments on a page or in the sidebar as a widget. It’s fully customizable to your needs….
Wordpress Comments Part One: 50+ Plugins | Final Stop / November 28, 2008, 11:22 PM
[...] Most Commented Plugin and Widget:Display most commented within a page or in the sidebar as a widget. [...]
SEO / December 3, 2008, 12:56 PM
? ?? ?? ????????? ???????????? ? ??????????
Nader / December 3, 2008, 4:07 PM
@SEO: Can’t read your comment. Please post in English.
Angeline / December 21, 2008, 9:29 PM
Hi, I did exactly what is being said and yes its installed properly (or I should think so)…
BUT, its NOT WORKING!!!
I don’t know if there is a limit for the time range, cos’ I put 300 days. In fact I was hoping that there was an option where I can click ‘All times’ or ‘ever since the blog began’ or something of that sort…
then I tried to load my page to check, its not appearing still… I changed to time range to 99 days…
but it still didn’t show up on my sidebar!
my WordPress version is 2.7, is this plugin compatible to this version?
Nader / December 22, 2008, 1:12 PM
@Angeline: Have you activated the Widget too? Without it the comments don’t appear in the sidebar. As for version 2.7: I developed the plugin for 2.6 but will test with 2.7 and let you now in the comments
Angeline / December 22, 2008, 2:05 PM
yes I activated it right after I’ve installed it….
Angeline / December 30, 2008, 5:44 PM
Hi Nader,
how? does it work on version 2.7? cos’ its still not working….
Artem Russakovskii / January 16, 2009, 9:31 AM
Worked like a charm, with no problems on 2.7. Thank you.
I was able to modify the default template to change the styling a bit – excellent.
Artem
http://beerpla.net
http://twitter.com/ArtemR
Brad / January 21, 2009, 11:07 PM
Hey, you can’t change the ‘effective time range’ nor limit the amount of posts without using the widget? Can you add those features to the regular template tag display?
Most Comments / January 30, 2009, 5:20 PM
[...] More Information & Feature Description: http://www.brandinfection.com/wordpress-plugins/most-comments/ [...]
John P / February 19, 2009, 7:30 PM
Like this a whole lot better if you tweak the query on Line 48 of most-comments.php to:
$request .= ” WHERE post_status = ‘publish’ AND comment_count>0″;
Don’t have to go through the foreach loop if there are no comments on posts within the specified range. Also makes the if/else statement on line 78 output properly in the else condition.
aidicard / February 20, 2009, 4:15 AM
Need help..
I am new on using WP, and my WP version is 2.7
I did exactly what is being said and yes its installed properly ( screenshot here http://i385.photobucket.com/albums/oo298/id_cerberus/Plugins.png )
but i can find it in my widget list ( screenshot here http://i385.photobucket.com/albums/oo298/id_cerberus/Widget.png )
one more thing i dont where am i supposed to put this
Please answer..
Nader / February 20, 2009, 1:10 PM
@John P: cool, thanks! will tweak the query and update the plugin
Nader / February 20, 2009, 1:11 PM
@aidicard: My Plugin is called “Most Comments”, not “Most Commented”. The other plugin does not provide a widget for your sidebar.
You can download my plugin here:
http://wordpress.org/extend/plugins/most-comments
John Thurston / February 24, 2009, 7:59 AM
There is an error on line 66 of most-comments-options.php. You have used the explicit name of the tables to query rather than using $wpdb->…..
It works if you are using the default table names but fails if you aren’t. Even worse, if you have multiple wordpress sites in the same database (with different table prefixes) it grabs categories from the wrong wordpress site.
I used:
$request = “SELECT wptermtax.term_id, wptermtax.term_taxonomy_id, wptermtax.taxonomy, wpterms.name, wpterms.slug FROM $wpdb->term_taxonomy wptermtax, $wpdb->terms wpterms WHERE wptermtax.term_id = wpterms.term_id AND wptermtax.taxonomy = ‘category’ ORDER BY wp
terms.name”;
and it seems to work
John Thurston / February 24, 2009, 8:08 AM
I like your work and want to modify to better fit my needs but I can’t find any license statement on “Most Comments”. Please tell us what we are allowed to do with your excellent work.
John Thurston / February 24, 2009, 8:42 PM
Per John’s suggestion above for line 48:
$request .= ” WHERE post_status = ‘publish’ AND comment_count>0?;
This line will pick up both pages and posts. I suggest :
“WHERE post_status=’plublish’ AND comment_count>0 AND post_type=’post’;
manami / February 25, 2009, 2:35 PM
Please help!
I’m using wordpress 2.7.0.
I had downloaded “the Most comment” and
was successed to indicate the widget in sidebar.
But I also want to indicate comment number
(like 67comments, 20comments)
What should I do?
I wonderd is it related to this?
manami / February 25, 2009, 2:37 PM
Please help!
I’m using wordpress 2.7.0.
I had downloaded “the Most comment” and
was successed to indicate the widget in sidebar.
But I also want to indicate comment number
(like 67comments, 20comments)
What should I do?
I wonderd is it related to this?
manami / February 25, 2009, 2:38 PM
Please help!
I’m using wordpress 2.7.0.
I had downloaded “the Most comment” and
was successed to indicate the widget in sidebar.
But I also want to indicate comment number
(like 67comments, 20comments)
What should I do?
I wonderd is it related to this?
“”
manami / February 25, 2009, 2:42 PM
I’m sorry!
I contributed to question three times…
I wonderd I should add this “php most_comments();” anywhere…
alex / March 12, 2009, 7:56 AM
Hi,
great plugin,is there anyway that i can put PHP code in the comments template?
thanks.
boilr / April 8, 2009, 3:41 AM
First, thanks for your great “most comments” plugin.
If using the template tag (NOT the widget) is there anyway to set the timeframe/variables for posts directly in the php?
i’d love to just show the most commented posts this week, for example, but currently it is showing the most comments all time.
is there a way to insert custom field specified images before the title as i have on my “recent posts” in my sidebar – http://www.boilr.net ?
finally, i noticed a very nice “tabbed” area of your sidebar…is that a plugin or did you code that? i’ve been trying to add something similar, so any and all input would be greatly appreciated.
thanks
boilr / April 8, 2009, 4:00 AM
not sure if my comment went thru, sorry if it did.
anyway to change parameters in the
i’d like to limit to the last week of posts. is this possible without using the widget?
also, did you code the “tabbed” section of your sidebar or is that a plugin?
thanks!
Nader / April 10, 2009, 5:53 PM
There is a tabbed plugin available on wordpress.org that does the magic.
I’ll include the functionality without widget you mentioned early next week.
boilr / April 12, 2009, 4:18 AM
@Nader – thanks in advance for adding the non-widget variable support, greatly appreciated!
if you could be so kind as to point out which tabbed plugin (there are a few) you use and whether it works with 2.7.1, thatd be awesome
cheers!
Nader / April 12, 2009, 12:06 PM
I’m using this one:
http://wordpress.org/extend/plugins/tabbed-widgets/screenshots/
Apparently it’s only compatible up to 2.6.1 but I would try it out. Most 2.6 plugins work out of the box for newer versions as well.
Mariano / April 14, 2009, 3:32 AM
Hi! I use the plugin directly in the code. ¿Is there a way to set the number of posts to show? I would like to show 10 instead of only 5. thanks!
boilr / April 25, 2009, 1:13 AM
@Nader: thanks again for your plugin. Any progress on “I’ll include the functionality without widget you mentioned early next week.”
just curious, would love to have more control since i don’t use widgets.
thanks!
boilr / April 25, 2009, 2:54 AM
sorry to comment so much, do you know how to add custom field images (i know how to specify them in each post with an id, etc) from the posts which have the most comments and display the thumbnail next to the title of the post in the list of most comments? if so, can you post the code here or possibly incorporate it in a future build?
thanks again!
Nader / April 27, 2009, 8:49 PM
@boilr: sorry, i didnt have time yet since i’m moving apartment. i will try until this weekend.
boilr / April 29, 2009, 8:17 AM
@nader – thanks for your reply. def no rush (just curious), thanks again for your plugin
Raul / May 25, 2009, 7:24 PM
Is there a way to show comments from particular category only?
Aribaba / May 30, 2009, 2:57 AM
I donwloaded it and the widget doesn’t come up… help!!! I’m using WP 2.7.1