
cold_realms(@cold_realms)
57 Posts
Customers
Quote from cold_realms on September 22, 2021, 23:12
Is there any way to get the woof orderby=rand to work properly with pagination? Currently, it randomizes every page every time and can result in the same item on multiple pages.
I have found some old posts on using a seed technique but none of those codes seem to work correctly with woof, nor do any plugins that try to implement a random sort.
Is there any way to get the woof orderby=rand to work properly with pagination? Currently, it randomizes every page every time and can result in the same item on multiple pages.
I have found some old posts on using a seed technique but none of those codes seem to work correctly with woof, nor do any plugins that try to implement a random sort.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on September 23, 2021, 11:27
Hello
This is a filter plugin and does not affect sorting
Hello
This is a filter plugin and does not affect sorting

cold_realms(@cold_realms)
57 PostsTopic Author
Customers
Quote from cold_realms on September 23, 2021, 20:05
I ask because as per the codex for woof_products:
- orderby – price-desc, price, popularity, rating, title, rand, date
I ask because as per the codex for woof_products:
- orderby – price-desc, price, popularity, rating, title, rand, date

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on September 24, 2021, 13:36
Hello
Yes, it is possible to set default sorting in the shortcode. this value is passed to wp_Query( https://share.pluginus.net/image/i20210924143459.png ) - https://developer.wordpress.org/reference/classes/wp_query/
it works like the wordpress developers did and unfortunately on my part I cannot change this
Hello
Yes, it is possible to set default sorting in the shortcode. this value is passed to wp_Query( https://share.pluginus.net/image/i20210924143459.png ) - https://developer.wordpress.org/reference/classes/wp_query/
it works like the wordpress developers did and unfortunately on my part I cannot change this

cold_realms(@cold_realms)
57 PostsTopic Author
Customers
Quote from cold_realms on September 24, 2021, 23:57
Ah, I see.
I think the other plugins break because of how woof calls wp_Query, not a problem per see... I think If I inserted the seed code within your code where it is called it might fire correctly. If I get it to work I'll let you know.
Ah, I see.
I think the other plugins break because of how woof calls wp_Query, not a problem per see... I think If I inserted the seed code within your code where it is called it might fire correctly. If I get it to work I'll let you know.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on September 27, 2021, 13:42
Hello
Ok! Great!
Hello
Ok! Great!