Display CPT posts based on specific taxonomy
$args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘typ’, ‘field’ => ‘slug’, ‘terms’ => ‘production’, ), ), ‘post_type’ => ‘opencourses’, ‘posts_per_page’ => -1, ‘post_status’ => ‘publish’, ); $query = new WP_Query( $args ); Please try above code. Thanks.