Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro Orderby Random not working

Viewing 9 posts - 1 through 9 (of 9 total)
  • Damon Tribble
    #117808

    Here is the page I am working on: https://businesstalentgroup.com/find-a-life-science-consultant/

    I have set the default order and secondary sort order for my search form to Random > Descending. I am using a shortcode to display the results via Ajax.

    You will notice that if you refresh the page the same three results will show every time. Similarly, if you choose an option from the dropdown, you will see the same three results every time you choose that option.

    My goal is for the results to be displayed randomly every time so that when you first visit the page and when you choose a filter option from the dropdowns, you will always get a different group of results.

    I have looked through the rest of my theme and I am not seeing any “pre_get_posts” actions which should be overriding the settings in my search form. I have also tried deactivating all plugins except search and filter pro and this does not fix the problem.

    One note: when I added the code mentioned in this thread https://support.searchandfilter.com/forums/topic/random-is-not-random/ to my functions.php file, the initial results displayed when I load the page did what I wanted and displayed randomly. However, when I chose any option from the dropdowns I continued seeing the same three people every time.

    I would appreciate any insights you might be able to offer on this.

    Thanks,
    Damon

    Trevor Moderator
    #117959
    This reply has been marked as private.
    Damon Tribble
    #118061
    This reply has been marked as private.
    Trevor Moderator
    #118138

    Before I dig too deep, it may be your hosting that is a cause, so we need to rule that out.

    WP Engine truncates query strings. This post shows how to override that:

    https://support.searchandfilter.com/forums/topic/killed-query-errors-in-log/#post-64826

    Damon Tribble
    #118956

    Ok. I’ll try it today…

    Damon Tribble
    #119172

    I tried adding…

    define(‘WPE_GOVERNOR’, false);

    …to my wp-config.php but it doesn’t seem to have made any difference. The entries still do not appear in random order on this page:

    https://businesstalentgroup.com/find-a-life-science-consultant/

    Can you take a look? Feel free to login and review the site…

    Thanks,
    Damon

    Trevor Moderator
    #119185
    This reply has been marked as private.
    Damon Tribble
    #119346
    This reply has been marked as private.
    Trevor Moderator
    #119355
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.