Custom post-type custom query – show all posts
This code: $term = get_term_by( ‘slug’, get_query_var($wp_query->query_vars[‘taxonomy’]), $wp_query->query_vars[‘taxonomy’]); … just fetches the term data for the currently queried term, it’s not altering the query in any way. To alter the query for your taxonomy term archives, you want to use the pre_get_posts action. Altering the query in the template just creates a new query, overwriting … Read more