How to Display Posts From Category Within a Custom Taxonomy?
@Krzysiek answer above didn’t work because have_posts is a method not a property. It should be have_posts() not have_posts. Here’s the corrected code: $my_query = new WP_Query( array( ‘post_type’=>’news’, ‘posts_per_page’=>4, ‘tax_query’=>array( array( ‘taxonomy’=>’instituteName’, ‘field’=>’slug’, ‘terms’=>’businessschool’ // change to real slug ) ) ) ); while ( $my_query->have_posts() ) { $my_query->the_post(); // display post }