Forums Forums Search & Filter Pro random results with pagination.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #104186

    Hi, I am using random for my search results but when you move from page to page with pagination, it forgets the initial random order and randomises them each time.

    is there any way to get around this?

    thanks!

    Trevor
    #104188

    It is, sadly, the default WordPress behaviour. But, this might work … If you were using our shortcode method, you would have access to the results.php file.

    This would mean, before you starting looping through the results array $query you could use the PHP shuffle function. I think. I have never tried this. YMMV.

    Anonymous
    #137139

    Hey both,
    I ran into the same problem, and even though Trevor suggested to change some of the code to work around it, I have no idea where to start with it (own php knowledge limitation).

    A few more details would be awesome, or Danns solution if the problem has been solved on his end.
    Cheers!
    Yoran

    Trevor
    #137160

    I have no simple answer to the need, I am sorry.

Viewing 4 posts - 1 through 4 (of 4 total)