exclude category from get_posts?

as ‘get_posts()’ uses the ‘WP_Query()’ parameters, i would assume that this should work:

$laargsM = array(
    'cat'              => 7,
    'posts_per_page'   => 300,
    'orderby'          => 'title',
    'order'            => 'asc',
    'category__not_in' => array(10) 
);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)