0

I would like my start page to display random posts, but put posts published close to today’s date first and posts published far from today’s date last - but regardless of what year the posts were published.

So, for today (feb 28), I would like it to first randomly show posts published on February 28th, regardless of what year the posts were first published. When all posts published Feb 28th have been shown, it would then randomly show posts published on Feb 27th and March 1st, then posts from Feb 26th and March 2nd, and so on.

My start page only displays 10 posts and then there is pagination at the bottom, so I would like the above to carry over to the next page as well.

Any clue how to do this?

Ps. I'm not very good at this so I need very specific instructions, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.