Wordpress | Query by custom Post type & custom taxonomy term

$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts( 
    array( 
        'post_type' => 'YourPostType', 
        'YourTax' => 'YourTaxTerm', 
        'showposts' => 8, 
        'orderby' => 'date', 
        'order' => 'DESC', 
        'post_status'=> 'publish',
        'ignore_sticky_posts' => 1, 
        'paged' => $paged 
    )
);
if (have_posts()) :
    while (have_posts()) : the_post();
        the_title()
    endwhile;
endif;
wp_reset_query();

This website may contain fan art inspired by existing characters from films, TV shows, or games. I don't own any rights to those characters — any copyright owner wishing to have a fan art removed can contact me here. This is a personal portfolio and store. It uses only the essential cookies needed for the site, cart, and account to work — no analytics, no tracking, no advertising.