Open geeklore opened 5 years ago
The issue seems to be related to the use of the get_next_post
and get_previous_post
functions, they do not support custom orders so Storefront will need to work around that by seeing it we can add some sort of filter in to fix this.
Describe the bug This is a duplicate of a bug I opened for WooCommerce. But it might not be a WooCommerce bug, it could be the way pagination is done in Storefront.
Here is the original bug: https://github.com/woocommerce/woocommerce/issues/21375
Please see Developer comments.
With the Product Pagination enabled for the Product Page and the sort order set to
Default sorting (custom ordering +name)
the sort order is displayed on the shop page as expected. But the pagination does not paginate according to the sort order. It's looks like it's by publish date, but sometimes there are no products loaded into the pagination.To Reproduce Steps to reproduce the behavior:
Default sorting (custom ordering + name)
.Screenshots Link: http://cld.wthms.co/UOKRG4
Link: http://cld.wthms.co/MSbzxa
Link: http://cld.wthms.co/ftKZU5
Expected behavior The expectation is that the pagination order would follow the same as the sorted order.
Isolating the problem (mark completed items with an [x]):
WordPress Environment