query(array( 'post_type'=>'custom_post_type', 'posts_per_page' => 10, 'paged' => $paged, 'tax_query' => array( array( 'taxonomy' => 'custom_taxonomy', // your custom taxonomy 'field' => 'slug', 'terms' => array( 'green', 'blue' ) // the terms (categories) you created ) ) )); if ($wp_query->have_posts()) : ?> have_posts()) : ?> the_post(); ?>