Forums Forums Search & Filter Pro Random sort not working on live site but works on localhost

Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Trevor
    #272636

    I wonder if this is the issue:

    https://support.searchandfilter.com/forums/topic/no-results-found-with-shortcode-methode/#post-272344

    Also, regarding random ordering. The ‘random’ order that WordPress provides (which is what we use) is PER PAGE of results, thus some posts may (and likely will) be repeated on the next pages. Each load of posts by infinite scroll or pagination is a ‘page’.

    This is how WordPress does it, sorry. Random is something I would generally advise against using, unless you are showing all posts in a single page.

    Anonymous
    #272723

    Thanks for the reply.

    I found this, which is kind of old, but wondering if it could be reworked to work with your plugin:
    https://hugh.blog/2013/08/22/wordpress-random-post-order-with-correct-pagination/

    I tried to mess with it a bit but couldn’t get it working.

    Any other ideas on how to “randomize” the post order? It doesn’t need to be truly random but would be nice if I could get it to change at least every few hours. Was trying to come up with a creative solution but I’m not smart enough.

    Trevor
    #272765

    Check this thread out (it turns to the question of random and pagination also, with some code snippets you might want to take a look at):

    https://support.searchandfilter.com/forums/topic/multiple-forms-on-one-page-search-analytics/

    Anonymous
    #273383

    Hey Trevor,

    Thanks for linking that and the quick reply. I am going to have to dig through it more thoroughly here soon but it sounds promising.

    Is the last comment by Ross in that thread talking about a problem with the proposed solution though? Again thanks much. This plugin helped a ton on a site I made that has a lot of filters/feeds.

    Trevor
    #273385

    It is a problem that you should be aware of and will need to work around.

    Much as we can try to help, this issue is far outside the scope of our support, I am sorry. I think the fact that it isn’t done often suggests that many have tried and failed. Otherwise, there would be a solution either in core WordPress, or in a plugin, and there is neither.

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