• Resolved Roman Cieciuch

    (@romancieciuch)


    Hi, I have updated the plugin to the latest version and it has stopped showing any of popular posts from last 7 days.

    I have checked the database and it stores information about new posts views, which is good. But it looks like the plugin can’t see anything newer than 1 year, because it can only show on website the posts that are very old.

    Please fix that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @romancieciuch,

    WPP will list posts that are being actively viewed by your visitors, including those that have been posted a long time ago. It all depends on how your visitors interact with your website and its contents.

    If you don’t want WPP to list posts that are very old, you may want to try this.

    Thread Starter Roman Cieciuch

    (@romancieciuch)

    Nice, thank you for the quick response! You’re the MAN! ??

    Tried your code and works well.

    I have just changed one thing. Via function “wpp_filter_posts_by_age” you can pass only one parameter: $where. Using two parameters – WP throws an error.

    function wpp_filter_posts_by_age($where, $options){

    So, I removed the second parameter and works like a charm.

    CASE CLOSED ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    The hook actually does receive two parameters, only I made I mistake when I posted that code which I later corrected on another comment on the same topic. Nonetheless I’m glad you were able to sort it out ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin stopped presenting data after update to 5.0.1’ is closed to new replies.