Change post order random through out the entire WordPress

Question

Is it possible to write a filter on global WP Query so that everywhere on WordPress site – all posts will be shown as random order? It will be applicable for any page like home page, blog page, category pages and archive pages. I don’t want to add random query on each template instead I can use the filter in functions.php file.
Your suggestion will be appreciated.

0
, , , blbwd 7 months 0 Answers 96 views 0

Leave an answer