This is sample of WordPress query by taxonomy
$TaxQuerya[] = array( 'taxonomy' => 'category', 'field' => 'slug', 'terms' => 'new-sec', ); $TaxQuerya[] = array( 'taxonomy' => 'category', 'field' => 'slug', 'terms' => 'pro-sec', ); $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 5, 'offset' => 0, 'tax_query' => $TaxQuery); $p_project = new WP_Query( $args );