Support » Plugin: Jetpack by » Popular posts….of all time?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor csonnek


    Happiness Rocketeer 🚀

    Hi there! Our Top Posts and Pages widget uses the most recent 48 hours of your stats to show your most popular posts and pages and is not able to set a custom time frame.

    However, there are many other options out there for displaying your top posts and pages. Feel free to choose one that suits you best:

    That link doesn’t work.

    Also I want to change the jetpack widget to display a longer timeframe or to display for all time, not install another widget. I don’t have enough visitors for popular posts otherwise. Since Jetpack is so huge I would rather not install another plugin, and I did look for one quite extensively before finding Jetpacks one.

    Whether you’re big or small I think it would be beneficial to have an “of all time” or even a weekly/monthly option. Not every site is huge and high traffic. Sometimes sites are portfolios with few visitors or personal blogs with only family visiting.

    Plugin Contributor Jeremy Herve


    Jetpack Mechanic 🚀

    You could add the following snippet to your theme’s functions.php, or to a functionality plugin:

    function jeherve_top_posts_timeframe() {
        return '30';
    add_filter( 'jetpack_top_posts_days', 'jeherve_top_posts_timeframe' );

    It would change the timeframe from 2 to 30 days, which might fit your needs a bit better. You can, of course, extend that number to include even more days, however I must warn you that when you extend that timeframe, it takes a bit longer for your site to query our Stats API to retrieve data about your posts. That’s why we limited the widget to 2 days by default, to avoid performance issues.

    I hope this helps.

    Thank you so much Jeremy! That helps a lot! 😀

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Popular posts….of all time?’ is closed to new replies.