I\'m having a problem getting my query function. I need to run the loop, excluding a particular category.
I\'m trying to use category__not_in
, but is no
Try using tax_query instead :
'post',
'post_status' => 'publish',
'posts_per_page' => 9,
'paged' => get_query_var('paged'),
'tax_query' => array(
array(
'taxonomy' => '',
'field' => 'term_id',
'terms' => array( 44 ),
'operator' => 'NOT IN',
),
),
);
$query = new WP_Query( $args );
query_posts($query);
?>