Support » Plugin: Popular Posts Tabbed Widget for Jetpack » Limit post dates

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anyone offering some help in this issue?

    Plugin Author Ryann Micua


    Hi @autoblogcommx, what you can do as of now, if to go to the popular posts tab widget setting, in the Default Date Range section, set the date for the popular posts to default to Weekly.

    Of course, users will still be able to click through “All”, “Monthly”, “Weekly” and “Daily” popular posts if they wish to.

    Thanks for your reply Ryan.

    The problem is that because the post keeps bringing lots of daily hits, it keeps appearing in the daily and weekly tab, doesn’t matter the range.

    If I could limit the posts being displayed to those being published in the past “x” time, it would be much better.

    Any idea how could I do it?

    Plugin Author Ryann Micua


    lol.. that’s why it’s called a popular posts list?

    anyway, I understand what you’re asking. my suggestion would be to modify the plugin’s get_posts_by_wp_com() method and in the call to get_posts() add a date parameter

    or you could add a line where it loops through the $top_posts and skip those posts that have a date more than 3 years ago (or whatever).

    Thanks for the suggestion Ryan, I will try and let you know how it went.

    I understand why it’s called popular posts, but I think it’s a good option to set a date range if a couple of your old posts are very popular and you want to attract viewers to new popular posts and not the same old ones.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Limit post dates’ is closed to new replies.