• Resolved sarahsas

    (@sarahsas)


    Hello. Lately I’ve noticed if I choose RANDOM in the post query order by, it doesn’t work, it just defaults back to published date instead. This is true of several different sites I’m using this plugin on and in several different grids. Can you investigate please? Thanks!

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @sarahsas,
    The random order is perfectly working in my local work environment. Are you using any cache plugin? This might be a cache issue. Please clear the cache for your page – https://ipoint-tech.com/services/website-hosting-and-maintenance/

    Thread Starter sarahsas

    (@sarahsas)

    Hi @azizulraju ok here’s a list of what I’ve done so far to troubleshoot:

    • Disabled all other plugins
    • disabled server cache
    • disabled local cache
    • disabled caching plugin
    • Activated default wordpress theme
    • Removed any custom code or custom css
    • changed “random” option in query settings to other options (all other options seem to work as expected, but when I switch back to random, it defaults to date order again)

    With all these testing variables done in various combinations, no matter which I try, the “random” option still does not work. It only will ever pull the posts in date order when “random” is selected. Any other thoughts?

    Please mention the version number of your Post Grid Combo.
    Also please try to create on post grid for testing purposes by only selecting the random query option and don’t touch other settings.

    Let us know the update.
    Regards.

    Thread Starter sarahsas

    (@sarahsas)

    Hi @azizulraju ,

    Post Grid version is 2.2.43

    I’ve copied the site to a dev environment and created a new post grid of the “Services” CPT. The only settings I adjusted was query = random, here is the test link for you:

    https://ipoint2023dev.wpengine.com/random-test/

    Thread Starter sarahsas

    (@sarahsas)

    @azizulraju My version does not allow me to select multiple queries – it is a dropdown option and only RANDOM is selected, for sure, see screenshot:

    Thread Starter sarahsas

    (@sarahsas)

    thanks @azizulraju I sent them an email the other day per your suggestion, I have not heard back from them yet….

    Thread Starter sarahsas

    (@sarahsas)

    OK! Solution found! apparently it is an issue with WP Engine hosting, by default they disable the random query… but you can re-enable it… from the wordpress dashboard, go to WP Engine -> Site Settings -> Advanced Configuration -> Random Order, drop that option down and tick the box to allow it. See here reference article from your wonderful email support team:

    https://total.wpexplorer.com/docs/docs/random-order-wpengine/

    Tested and working smoothly now, thank you!

    Glad to know the issue is resolved.
    Would you mind writing a review for our plugin? It’ll inspire us a lot.
    You can post your review here – https://www.ads-software.com/support/plugin/post-grid/reviews/

    Thank you so much.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Random order query not working?’ is closed to new replies.