download
// WP_Query arguments
$args = array(
'post_type' => array( 'download' ),
'tax_query' => array(
array(
'taxonomy' => 'download_category',
'terms' => array( 'eBook', 'Virtual Boxed Set' ),
'field' => 'name',
'operator' => 'NOT IN',
),
),
);
// The Query
$download_query = new WP_Query( $args );
// The Loop
if ( $download_query->have_posts() ) {
while ( $download_query->have_posts() ) {
$download_query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();