- Geert(Private) May 23, 2020 at 4:16 pm #245641
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/
GeertGeert(Private) May 28, 2020 at 8:25 am #246219
Thanks for the reply.
+ 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?
GeertRoss Moderator(Private) May 28, 2020 at 9:33 am #246228
So its only when choosing menu order you get a random order?
And the post with the position of
1set, 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
Perhaps, when using menu_order, the post with position
1is ordered correctly, but the rest are ordered according the IDs we supplied in
Does that sound like it might be correct?
If that is the case, I suspect, setting a secondary sort order (in the
poststab of your search form) might order the remaining posts how you want?
Let me know how that works out.
You must be logged in to reply to this topic.
Our support hours are:10am - 5pm (GMT), Monday - Friday
Please be aware that tickets opened over the weekend will looked at on Monday.