Exclude a single taxonomy term in an array of all posts of a given custom post type

 ‘casestudy_type’,

        ‘showposts’ => 10 

    ) );  

?>

The query above looks for the post type “casestudy_type” ans shows the 10 most recent posts regardless of taxonomy membership

 ‘team_type’,

‘showposts’ => -1,

‘tax_query’ => array(

        array(

            ‘taxonomy’ => ‘department’,

            ‘field’    => ‘id’,

            ‘terms’    => array(18),

            ‘operator’ => ‘NOT IN’,

        ),

    ),

) );  

?>

The query above looks for the custom post type “team_type” shows ALL posts (-1 = ALL) and excludes taxonomy term 18 of the “department” taxonomy