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.


Facebook Comments
1 Comment On “Most Commented Plugin Hack”
On 17th March 2009 9:30 PM, Lee said:
Any idea on how to hack it so it only displays X amount of characters for each post title? Thanks.
2 Trackbacks On “Most Commented Plugin Hack”
Post a Comment