How to Display Most Commented Posts in Your WordPress Sidebar

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.

December 20, 2009

75 responses to How to Display Most Commented Posts in Your WordPress Sidebar

← Older Comments
  1. Pingback: WILLARD

  2. Pingback: EDDIE

  3. Pingback: SHAUN

  4. Pingback: JULIAN

  5. Pingback: JORDAN

  6. Pingback: STEVE

  7. Pingback: EDDIE

  8. Pingback: BERNARD

  9. Pingback: CLAUDE

  10. Pingback: SCOTT

  11. Pingback: DENNIS

  12. Pingback: JULIAN

  13. Pingback: LEE

  14. Pingback: SHAUN

  15. Pingback: WARREN

  16. Pingback: MELVIN

  17. Pingback: CASEY

  18. Pingback: SALVADOR

  19. Pingback: FRED

  20. Pingback: WESLEY

  21. Pingback: ROBERTO

  22. Pingback: FRANKLIN

  23. Pingback: NORMAN

  24. Pingback: JORDAN

  25. Pingback: TED

← Older Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>