Taxonomy are basically a way of grouping data in WordPress. The most common default taxonomy used in WordPress are when grouping posts as either ‘categories’ or ‘tags’ and these are named and recorded in the WordPress database as ‘category’ and ‘post_tag’ respectively. Specific categories or tags are called terms.
You can see this image for get post-
Follow this code-
<?php $post_type = "news"; $taxonomy = "latest"; $temp = $wp_query; // re-sets query $wp_query = null; // re-sets query $args = array( 'post_type' => 'news', 'order'=>'ASC', 'posts_per_page' => 6, 'tax_query' => array(array('taxonomy' => 'latest', 'field' => 'id', 'terms' => $term_id))); $wp_query = new WP_Query(); $wp_query->query( $args ); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <?php the_title(); ?> <?php the_content(); ?> <?php endwhile; ?>