Displaying posts based on post type taxonomies:
<?php
$args = array(
‘post_type’ => ‘imageslider’, // Post type
‘showposts’ =>4, // Number of sliders
‘tax_query’ => array(
array(
‘taxonomy’ => ‘imagecategories’, // Taxonomy name
‘field’ => ‘id’,
‘terms’ => $postTaxonomy,
)
)
);
query_posts($args);
?>