WordPress Popular Posts
[Plugin: WordPress Popular Posts] rank popular posts by views without widget (2 posts)

  1. liquidRock
    Posted 4 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.


  2. Hector Cabrera
    Plugin Author

    Posted 4 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

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic