Show random posts on front page


By default, the latest posts list on the front page gets displayed in reverse chronological order and that is what latest posts is. Can you customize it further?

Can you display random posts on the front page?

Add this small bit of code to your child theme’s functions.php and you can indeed display random posts on your front page.

 


Related Snippets you may also like


We can help you to implement this snippet

Coding is our job and we know WordPress inside and out. We can help you to customize your website with small chunks of code snippets like this one.

Send us your request and we'll get back to you quickly.



6 thoughts on “Show random posts on front page

Comments are closed.