Hi @katy87,
Thank you for reaching out!
I’ve tested this on my end, and both the shortcode ([dokan-stores orderby="random"]) and the filter options on the Store Listing page (including the sorting setting in WP admin > Appearance > Customize > Dokan > Store List) are working as expected. However, using the direct URL parameter (like ?stores_orderby=random) will not work on its own — this parameter is only recognized when used alongside the store filter nonce, which is automatically added when filters are applied on the store listing page. For example:
example.com/store-listing/?stores_orderby=random&_store_filter_nonce=1234abcd!@#$
That’s why you’re not seeing the random order effect when using the plain URL parameter manually.
As per the current implementation, the random sorting only happens once — meaning it randomizes based on the alphabetical order of store names, and it doesn’t happen on every page reload. We’ve already shared this behavior with our development team and suggested improvements. You can follow the related GitHub discussion here for updates:
🔗 https://github.com/getdokan/dokan/discussions/2934
If it’s not working at all on your end, could you please check if the shortcode or the filter option works properly in a minimal setup after deactivating all other plugins except Dokan and WooCommerce? Switching temporarily to a default Twenty Twenty theme would help isolate theme conflicts as well. Kindly clear your browser and server cache before trying.
Let us know how it goes. We’ll be waiting for your feedback. Have a great day!
Hello @katy87,
As we haven’t heard back from you for a while, we’ll consider this topic resolved. If you encounter any further issues, please don’t hesitate to open a new topic.
Thanks!
Thread Starter
Katy87
(@katy87)
Thank you, i’ve modified the permalink and it seems to be working as expected now. Thanks again!