Call the function by ek_get_post_type($post_type_name, $post_type_taxonomy, $tax_id, $number_of_posts);

Put this in your function.php

[code]

$post\_type, ‘tax_query’ => array( array( ‘taxonomy’ => $type, ‘field’ => ‘id’, ‘terms’ => $cat_id, ‘operator’ => ‘IN’ ) ), ‘posts\_per\_page’ => $num, ‘order’ => ‘DESC’, ‘orderby’ => ‘date’ ); ?>
have\_posts() ) : $loop->the\_post(); ?>

<?php

}//end function

[/code]