Sorting does not work on quicksearch results archives
- # 4 months, 3 weeks ago
Sorting works fine for categories, eg. https://test.antikvarijatknjiga.hr/knjige/knjizevnost/aforizmi-i-epigrami/?orderby=_price_str_asc
and it also works fine in fauceted search, eg. https://www.antikvarijatknjiga.hr/?s=krle%C5%BEa&post_type=product&orderby=_price_str_asc&wpsolr_fq%5B0%5D=pa_izdavac_str%3AOslobo%C4%91enje
But it does not work in other taxonomies, eg. https://test.antikvarijatknjiga.hr/autor/miroslav-krleza/
In that case, whatever is chosen in the sort dropdown is ignored.# 4 months, 1 week ago
I’ve been trying to debug this all this time – yes, replace sort option was on.
Apparently, on custom taxonomy based archive pages, the $wp-query global object is not replaced by wpsolr’s, as it is on category and fauceted search results.
Also, I noticed that function wpsolr_filter_is_replace_by_wpsolr_query returns true for category pages, but false if the page displays custom taxonomy results.
Here is a beta version with a fix to manage custom taxonomies with WooCommerce:
You must be logged in to reply to this topic.