I have rewritten the query_posts
. As for get_posts
you are better off using the WP_Query due to more control over the tax_query. Explained here.
<?php
$args = array(
'cat' => 84,
'posts_per_page' => 3,
'offset' => 0,
'tax_query' => array(
'relation' => 'NOT IN',
array(
'taxonomy' => 'display',
'field' => 'slug',
'terms' => 'featured-slider'
)
)
);
$wpse42083_query = new WP_Query( $args );
while( $wpse42083_query->have_posts() ) : $wpse42083_query->the_post();
// write post stuff in here
endwhile;
// Reset Post Data
wp_reset_postdata();
?>
Edit: I added the usage.