WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
rank popular posts by views without widget (2 posts)

  1. liquidRock
    Member
    Posted 2 years ago #

    I updated my blog/plug-ins and the theme had your plug-in hard coded in the sidebar from an older version. Since this was done without a widget, how can I make the plug-in display posts based on views since there are no settings anymore? The database still has everything intact it's just not displaying the same posts anymore and seems to be based on comment count.

    I tried to set the defaults in the plug-in PHP file to views but this had no effect.

    please advise.

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hi liquidRock,

    You can achieve this by passing the views parameter to the template tag, like this:

    if (function_exists('wpp_get_mostpopular()')) wpp_get_mostpopular('order_by=views&stats_views=1');

    Give that a try and let me know if you need further assistance with it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic