print post by custom taxonomy wordpress


Use the following code in your filter args section

'tax_query' => array(
 array(
  'taxonomy' => 'custom_category',
  'field' => 'slug',
  'terms' => 'category-slug',
 ),
),

Change custom_category with category name 


Full code

$type = 'management-team';
$args=array(
'post_type' => $type,
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1,
'tax_query' => array(
 array(
  'taxonomy' => 'custom_category',
  'field' => 'slug',
  'terms' => 'category-slug',
 ),
),
'orderby' => 'menu_order', 
'order' => 'ASC', 
); 
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
 while ($my_query->have_posts()) : $my_query->the_post();  
  print the_content();
 endwhile; 
} 
wp_reset_query(); 




Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.