page-taxonomy-term-query.php



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(); ?>	
    
    
  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    − 2 = 3