Creating a Most Commented On Posts Plugin for WordPress

Originally published at: http://www.sitepoint.com/creating-a-most-commented-on-posts-plugin-for-wordpress/

Fresh content on any site is a good thing. A nice touch is to display your most discussed posts to your website visitors. In the case of WordPress, a widget is the ideal place for this. Users who wouldn’t otherwise know where to go after reading the current post, might check out and hopefully participate in your blog’s most commented posts. Your most commented on posts are commonly also the ones which bring most page views and are the most interesting.

In this tutorial we will create a basic plugin to display most commented on posts in a widget. Although there are lots of plugins available for this purpose, many of them tend to be overwhelming and also don’t support caching. In this article, the plugin we’ll build will be lightweight and will cache the top 10 commented posts for 24 hours.

Continue reading this article on SitePoint

Great article as always @narayanprusty

For the sake of non-technical users, a link to download the plugin at the end of the tutorial will be very much appreciated.

Thanks for the suggestion @collizo4sky

I will update the article with a link to download the plugin directly.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.