Randomize Search Results

Forums › Forums › Search & Filter Pro › Randomize Search Results

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #155994

    Hi team!

    My client would like me to randomize the search results. Does anyone have any tips and tricks as to how I can tweak results.php to present the search results in a random order each time the results are displayed?

    Many thanks in advance!

    Michelle

    Anonymous
    #156010

    Just an update here.

    I realize that I can add “Sort Order” field to the search form but:
    1. I do not want to give the users the option to choose
    2. I want the default sort order to be random.

    Thanks! 🙂

    Trevor
    #156042

    In the Form Settings, go to the posts tab. In the sort options you can choose random. BEWARE though. WordPress will randomly select posts for EACH page, and so you may see the same post on more than one page. It re-randomizes the posts on each change of page in the pagination.

    Anonymous
    #156077

    I completely missed that option!

    Thanks again for your awesomeness!

    This topic can now be closed.

    Michelle

Viewing 4 posts – 1 through 4 (of 4 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.