Order archive custom posts by taxonomy term [duplicate]

First things first… Why it doesn’t work? Your code doesn’t work, because you use WP API incorrectly… Method set takes exactly two arguments: set( $query_var, $value ) Set a named query variable to a specific value. So how do you use it in your code? $query->set( get_terms( array( ‘taxonomy’ => ‘cat_publications’, ‘orderby’, ‘slug’ ) ) … Read more