Wordpress Plugin: Most Comments (+ Widget)
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





October 13th, 2008 at 7:38 pm
hi. Thanks for plugin
perfect.
Regards
October 13th, 2008 at 8:48 pm
[...] Most Comments [...]
October 13th, 2008 at 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 [...]
October 14th, 2008 at 2:28 am
[...] Most Comments [...]
October 14th, 2008 at 2:12 pm
[...] Most Comments [...]
October 14th, 2008 at 10:11 pm
[...] Most Comments [...]
October 15th, 2008 at 5:39 pm
[...] Most Comments [...]
October 17th, 2008 at 10:20 am
[...] Download Wordpress Plugin Most Comments « Abakus Keyword Analyser. A Tool For SEO. [...]
October 19th, 2008 at 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.
October 19th, 2008 at 1:09 am
Thanks for the feedback! I’ll write up a little tutorial and insert it in the readme file.
November 3rd, 2008 at 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
November 3rd, 2008 at 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
November 3rd, 2008 at 8:43 pm
Thanks, now it works
November 5th, 2008 at 3:33 pm
[...] Most Comments [...]
November 6th, 2008 at 5:40 pm
[...] November 6, 2008 via WordPress Plugin: Most Comments (+ Widget) | BRAND INFECTION [...]
November 8th, 2008 at 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….
November 28th, 2008 at 11:22 pm
[...] Most Commented Plugin and Widget:Display most commented within a page or in the sidebar as a widget. [...]
December 3rd, 2008 at 12:56 pm
? ?? ?? ????????? ???????????? ? ??????????
December 3rd, 2008 at 4:07 pm
@SEO: Can’t read your comment. Please post in English.
December 21st, 2008 at 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?
December 22nd, 2008 at 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
December 22nd, 2008 at 2:05 pm
yes I activated it right after I’ve installed it….
December 30th, 2008 at 5:44 pm
Hi Nader,
how? does it work on version 2.7? cos’ its still not working….
January 16th, 2009 at 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
January 21st, 2009 at 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?
January 22nd, 2009 at 6:33 pm
[...] ????? ??????????????. ?????? ????? ?????????????? ?????? ???? ?? ?????? ??????????? ????? ??????? ?? ?????? ???????? ?????, ?? ? ???????? ??????? ????????? ???????????? ?????. ??? ????????? ?????? ??????? ?????????? ????????? ?????? – Most Comments. [...]
January 30th, 2009 at 5:20 pm
[...] More Information & Feature Description: http://www.brandinfection.com/wordpress-plugins/most-comments/ [...]
February 19th, 2009 at 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.
February 20th, 2009 at 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..
February 20th, 2009 at 1:10 pm
@John P: cool, thanks! will tweak the query and update the plugin
February 20th, 2009 at 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
February 24th, 2009 at 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
February 24th, 2009 at 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.
February 24th, 2009 at 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’;
February 25th, 2009 at 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?
February 25th, 2009 at 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?
February 25th, 2009 at 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?
“”
February 25th, 2009 at 2:42 pm
I’m sorry!
I contributed to question three times…
I wonderd I should add this “php most_comments();” anywhere…
March 12th, 2009 at 7:56 am
Hi,
great plugin,is there anyway that i can put PHP code in the comments template?
thanks.
April 8th, 2009 at 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
April 8th, 2009 at 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!
April 10th, 2009 at 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.
April 12th, 2009 at 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!
April 12th, 2009 at 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.
April 14th, 2009 at 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!
April 25th, 2009 at 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!
April 25th, 2009 at 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!
April 27th, 2009 at 8:49 pm
@boilr: sorry, i didnt have time yet since i’m moving apartment. i will try until this weekend.
April 29th, 2009 at 8:17 am
@nader – thanks for your reply. def no rush (just curious), thanks again for your plugin
May 25th, 2009 at 7:24 pm
Is there a way to show comments from particular category only?
May 26th, 2009 at 8:49 pm
?? ? ???, ????????? ???? ?
May 30th, 2009 at 2:57 am
I donwloaded it and the widget doesn’t come up… help!!! I’m using WP 2.7.1
June 15th, 2009 at 6:59 pm
Just curious, is there a way to have it read ‘comment’ rather than ‘comments’ if there is just one instance. Right now, I have a few posts and it shows ‘1 comments’, I’d like it to read ‘1 comment’.
July 7th, 2009 at 3:55 pm
[...] FOLIO!DEA – Wordpress Theme Folio!dea – WORDPRESS THEME Features: ————- Comments compatible with WordPress 2.8; Gravatar support for comments; jQuery slideshow gallery for project previews; Custom post image ?Thumbnails; Read me file included for easy customization; PDF files for custom field; CSS /XHTML validated; Widget ready; Theme includes 1 PSD files for logo; Theme tested on WordPress 2.8; Ready for: ————– MSIE 6 MSIE 7 Opera Firefox 2 Firefox 3 Safari Chrome Installation —————- STEP 1: Extract the files it contains. You need to preserve the directory structure in the archive when extracting these files. STEP 2: Upload the theme to your /wp-content/themes/ directory. STEP 3: Go to Appearance -> Themes and activate the "Folio!dea" theme. If you still got confused then please visit http://codex.wordpress.org/Using_Themes for detailed installation instructions. :) Plugins necessary for this theme ———————————————– 1. WP-Pagenavi: Plugin wp-pagenavi link: http://lesterchan.net/wordpress/readme/wp-pagenavi.html 2. Twitter Tools Twitter Tools link: http://alexking.org/projects/wordpress 3. Flickrrss Flickrrss link: http://eightface.com/wordpress/flickrrss/ 4. Limit post Limit post: http://labitacora.net/comunBlog/limit-post.phps 5. Most comments http://www.brandinfection.com/wordpr…most-comments/ [...]
August 22nd, 2009 at 4:41 am
Awesome plugin! Thanks for publishing it! One problem I’m having however is the %POST_EXCERPT% – the excerpt doesn’t show up. All you see is “%POST_EXCERPT%” . Any idea on how to solve it?
September 15th, 2009 at 12:29 pm
tancks.
This Post Helped me
Good Time
September 21st, 2009 at 4:59 pm
Nice plugin! I have a question; Can I send the X days parametre with the function in my template files?
October 2nd, 2009 at 5:24 am
Ok, I was wondering if I can become friends with someone who is already signed up for lockerz.
________________
unlock iphone 3gs
October 23rd, 2009 at 12:29 am
When you add the image, you are given the option of adding its positioning on the page, which is a very nice addition. ,
December 5th, 2009 at 9:52 pm
Is there any way to exclude a category or tag from the posts that this plugin pulls from?
January 18th, 2010 at 6:21 pm
[...] Most Comments – y’all talk a [...]
January 18th, 2010 at 7:26 pm
[...] Most Comments – y’all talk a [...]
January 19th, 2010 at 12:56 am
[...] Most Comments – y’all talk a [...]
January 19th, 2010 at 6:22 am
[...] Most Comments – y’all talk a [...]
January 20th, 2010 at 3:32 pm
[...] Most Comments – y’all talk a [...]
January 22nd, 2010 at 4:22 pm
[...] Most Comments – je praat te veel! [...]
January 26th, 2010 at 4:05 am
[...] Most Comments – y’all talk a [...]