wp query not in category

105

$argsQuery = array(
    'posts_per_page'   => 3,
    'post_type'        => 'download',
    'category__not_in' => 5 , // Category id to exclude
);

Comments

Submit
0 Comments