Plugin Popular Posts Tool

(Leer en español)

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:

popular-posts-tool-demo

Easy configuration through widget:

popular-posts-tool

Download here its most stable release:

http://wordpress.org/extend/plugins/wp-popular-posts-tool/

Installation:

  1. Unzip and upload to the plugins folder  (located in /wp-content/plugins/).
  2. Active the plugin from Wordpress administration panel.

Manual Usage:

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

Example:

<?php if(class_exists(WpPopularPostsTool)):
WpPopularPostsTool::ti_popular_posts(5);
endif; ?>

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:

46 Comments

  1. Hi Teo,

    Great plugin. But please, think about adding time interval to the filter, that way you’ll be able to see the most commented posts of the day, week, month or year.

    What do you think about it?

    Saludos!

  2. Teo, First of all, thanks for this wonderfull widget. It works very well
    I do have one problem… i can’t theme it… my others widgets are working with the theme. I take a look at the html code of the printed page and i notice that the widget doesn’t print the divs that i assign in the functions.php of my theme. It is a problem of my code or is your widget?

    feel free to send me an email if you want to take a look in my website.

    Thanks in advance and i’m sorry to bother you.

      1. ok, i did a workarround, and it works perfect.
        now, when you insert the code directly to the «sidebar.php» file for example, you can set the amount of posts that the widget displays… is there a way to activate the graphical bars and the icons for the «comments» text when inserting the code?

        Thanks for the previous answer 😀

        1. WpPopularPostsTool::ti_popular_posts($num, $my_id=0, $begin=», $end=», $pre=», $suf=», $mode=1, $disableComments=0, $barsLocation=0);

          Where $mode=1 turns on graphical mode.

          1. Great! Thank you very much, now the plugin it’s working flawlessly ;D

            I will put the link of your site in my «thanks» page and when i can, i will make a donation.

            Thanks Again!

  3. Teo, thank you for this plugin. I have a quick question. Is it acceptable if I remove «# Popular posts Tool for WordPress by Teofilo Israel» from the list of popular posts? I should be able to edit the code to do it myself but wanted to check with you first. ¡Gracias!

  4. Hello,
    i have a problem since 2.0 release. I use the widget and with version 1.1.3 the title had always h2 tag. Now with version 2.0 the h2 tag is deleted.

  5. This plugin is exactly what I was looking for except for one problem. It seems this plugin can only be used once! When I drag it to a sidebar it disappears from the Available Widgets box. I need to use this plugin on several different sidebars.

    If you can fix this I will definitely send a generous donation. Really I will! : )

  6. Super plugin!
    I found a bug, archive.php page is not displayed if the accent is on behalf of the category.
    How can I fix it?
    Excuse me, but I do not speak the English language.

  7. Thanks. I will try this for my blog. My blog is about ciopyright and copyright infringements in Europe, especially Germany (In German: Abmahnung wegen Urheberrechtsverletzungen). Bye

  8. Pingback: AllTuts

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

©2024 Teofilo Israel WordPress Video Theme by WPEnjoy