This Wordpress plugin ables you automatically display the most commented posts by categories or tag. In adition, you can manually select the category or tag that you want to display its most commented posts:
Easy configuration through widget:
Download here its most stable release:
- Unzip and upload to the plugins folder (located in
- Active the plugin from Wordpress administration panel.
If you want to add the plugin output directly in your code:
WpPopularPostsTool::ti_popular_posts($num, $my_id=0, $begin='<ul>', $end='</ul>', $pre='<li>', $suf='</li>', $mode=1, $disableComments=0, $barsLocation=0);
$num: Number of entries to display
$my_id: The id of the category or tag you want to display its most commented posts. If you leave it empty, the plugin will automatically detect if you are in the categories or tags archive and will display mosts commented posts for that category or tag. If you are in a single posts, then will display the most popular posts for the first category of thata entry. If none of the above conditions are found, then the plugin will display the mosts comented posts at general level.
$begin: html tag that will appear at the begin of the list. If leave it empty, will be <ul> by default
$end: html tag that will appear at the end of the list. If leave it empty, will be </ul> by default
$pre: html Tag that will appear at the begin of each list element. If leave it empty, will be <li> by default
$suf: html Tag that will appear at the end of each list element. If leave it empty, will be </li> by default
$mode: 0 for normal mode, 1 for graphic mode
$disableComments: 1 if you don’t want to display the comments quantity
$barsLocation: Controls the position of the bars in graphical mode
The above example shows a lists with the five most popular posts.
If liked this plugin and it has been useful and you’d like promote its development, you can contribute with a generous donation. Thanks:PUBLICIDAD