Randomize listing query

Right now the listing on category page show from newest to oldest. How can I make it so it will randomize every time user visit the page? like in elementor posts query there is an option to make the order random.

It’s possible, but requires code customizations. If you’re familiar with PHP and WordPress, please try using the pre_get_posts hook to detect the listing query and set random order pagination - Is it possible to paginate posts correctly that are random ordered? - WordPress Development Stack Exchange

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.