Also sort for 'category' queries
-
category-post-sorter.php contains:
if( is_admin() OR !$query->is_main_query() AND !$query->is_tax() ) return $clauses;
If there is a query that is executed for a category, there will be no modification, because
is_tax()
returns false.I suggest changing the statement to:
if( is_admin() OR ( !$query->is_main_query() AND !$query->is_tax() AND !$query->is_category() ) ) return $clauses;
https://www.ads-software.com/plugins/category-custom-post-order/
- The topic ‘Also sort for 'category' queries’ is closed to new replies.