I'm using a get_posts() call to pull a list of posts in a specific category. However, the recordset also includes posts in subcategories of the target category.
How can I exclude subcategories from the query?
$cat = get_query_var( 'cat' );
$catHidden=get_cat_ID('hidden');
$args = array('cat' => "$cat,-$catHidden");
$myposts = get_posts($args);