• Resolved liviach

    (@liviach)


    Hi,
    your plugin is great and working perfectly. Thank you so much for sharing it!

    Since I’ve had my blog for a very, very long time, I would like to see the posts from 20 years back (and even more, in the future). It seems, that’s not possible.

    Could that possibility be added? Or can I tweak the files myself?

    Thanks a lot in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Hi!

    Sorry for the delay in getting back to you, for some reason I didn’t get a notification about your post!

    You can add the following code snippet to your site, thanks to a functionality plugin like this one, to query 20 years back:

    add_filter( 'jeherve_posts_on_this_day_query_back', function () { return 20; } );

    Careful though, the further back you go, the longer it will take for the widget to fetch all the posts and display the items on the page. In practice, that means that the first person who loads the site each day will have to wait a bit longer before to see the posts ; the people who visit your site after that person won’t see a difference since the results will be cached for the rest of the day.

    Thread Starter liviach

    (@liviach)

    Hi,

    Now I’m the one to be sorry for the late reply.

    I entered the code in a code snippet plugin, but since I haven’t posts that are this old yet, I will see in a few months whether it is working.

    Thanks a lot for your help.

    Kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts from more than 20 years ago?’ is closed to new replies.