How to sort custom post type posts in default order by multiple fields?
Since I just wrote a pre_get_posts answer for someone else, I will modify it slightly and see if it works for you too. When using pre_get_posts the $query variable is passed “by reference” which means we can directly manipulate the $query object with the shortcut functions such as set_query_var. Remove the query code from your … Read more