Looking for support? You can access the support system via your account.
- This topic has 5 replies, 2 voices, and was last updated 3 years, 11 months ago by .
You must be logged in to reply to this topic.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Posts show in random order
Hi,
I use s&f on a woocommerce store. I use as order setting: Menu order.
I have one product set in menu order 1 and the rest of the products have the same number.
When refreshing a category-age, all the products appear in a random order except the product with menu order ‘0’. Also when clicking to a next page in the result, it won’t show the products from that page, but also shows me products from page one again. Again in random order.
How can I prevent this random sorting?
Example productpage: https://cadeau.compion.dev/product-categorie/kinderkussens/
Geert
Hi Geert
It sounds like there may be something interferring with the query, causing a random order :/
Can you try disabling other plugins, and test on a default theme, to see if the same things happens?
Thanks
HI,
Thanks for the reply.
I have:
+ Disabled all plugins except woocommerce and S&F
+ Tried the default storefront theme and basic wp theme
but nog results. The posts still shows me the random order through all products with the same menu=order.
When I disable S&F, the random order stops and the products are in a fixen position every time the page refreshes. So it looks like S&F itself is causing the random order.
When I try another post-order setting in s&f, that order is working fine and not showing post in a random order.
Could it be that the setting for post-order: menu-order, show post with the same menu-order in a random way?
Geert
Hi Geert
So its only when choosing menu order you get a random order?
And the post with the position of 1
set, that is displayed consistently last / first?
When we do a search, we don’t use many WP_Query paramaters, we do our own query, which gets a big list of Post IDs for your results, and we stuff that into a WP_Query using post__in
Perhaps, when using menu_order, the post with position 1
is ordered correctly, but the rest are ordered according the IDs we supplied in post__in
Does that sound like it might be correct?
If that is the case, I suspect, setting a secondary sort order (in the posts
tab of your search form) might order the remaining posts how you want?
Let me know how that works out.
Thanks
You must be logged in to reply to this topic.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy