Featured Posts

Best 10 SEO Plugins for Wordpress Most of the blogs nowdays built on wordpress and for better great search engine optimization (SEO), it is always advisable to use plugins for wordpress which are quite easy to install. These are some of...

Readmore

Top 126 Ajax Tutorials Heres a list of the top 126 Ajax tutorials out there. They are organized into a wide range of categories from Getting Started to Shopping Carts. Everything you need regarding Ajax is right here. This...

Readmore

Best Online To Do list and Task Managers Recently I was searching for online task managers for my web freelancing work & projects as I noticed off late that too many of my to-dos were not getting done. Often I am accused of being messy &...

Readmore

Creating A Custom 404 Page in Wordpress Without Using... I have recently changed my blog theme to The Seven Five is a semi-automatic “Lifestream” WordPress theme, the theme is great & I am luving  it. I added some pages like archives page, 404 error...

Readmore

  • Prev
  • Next

How to Display Most Commented Posts in Your WordPress Sidebar

Posted on : 20-12-2009 | By : admin | In : Blogging, How to, Uncategorized, Web 2.0 & Utilities, blogs, wordpress

0

WordPress has a long list of plugins os displaying Most commented posts in wordpress is very easy to do with a pluin called Most Commented which displays a list of most commented posts in your sidebar.

First You need to download and activate the plugin. Then you need to place the following code in your sidebar.php or any other theme file.

<?php mdv_most_commented(); ?>

To customize the list, you can use parameters like:

<?php mdv_most_commented(10, ”, ‘<br />’, true, 30, true) ?>

Parameters You can use:
$no_posts – sets the number of posts to display
$before – text to be displayed before the link to the post
$after – text to be displayed after the link to the post
$show_pass_post – whether or not to display password protected posts
$duration – displays comments for recent number of days
$echo – whether or not to echo the output or return an array of values

That’s it, now you can use most commented posts in sidebar.