• 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://wordpress.org/plugins/category-custom-post-order/

  • The topic ‘Also sort for 'category' queries’ is closed to new replies.