"If you can get along with everyone and everyone loves you, then you don't stand for much. A person who stands his ground for his principles and won't compromise his integrity is not loved by everyone."
- Larry Winget

Most Commented Plugin Hack

I hacked the Most Commented plugin to make it display only posts with 1 or more comments. I did this because I thought display posts with zero comments in a “most comments” post list was not very smart.

$request .= " WHERE post_type = 'post' AND post_status = 'publish' AND comment_count >= 1";

It is really simple. Simply add ” AND comment_count >= 1″ on line 17 of most-commented.php.

Tagged As: , , ,

Posted by Vincent on 20 October 2008 8:04 AM in Wordpress Help You can leave a comment, or trackback from your own site. |

Similar Posts

Did You Enjoy This Post?

Subscribe to our blog through our RSS feed or email to receive updates on more posts like this. post on your favourite social networking or media site to let others know about this post. Help us generate more buzz by submitting/voting for this post with the following buttons.

2 Trackbacks On “Most Commented Plugin Hack”

Post a Comment


(Required)


(Required)