cat_name] = $category->cat_ID;
}
$options_cat_id = array();
if($options_categories){
foreach ( $options_categories as $cat_name => $cat ) {
if(!empty($blog_categories)){
if (!in_array($cat_name, $blog_categories)){$options_cat_id[]= $cat;}
}
}
}
if(empty($options_cat_id)){
$query_posts = array(
'showposts' => $blog_article_number,// $post_list_num
'ignore_sticky_posts' => 1,
);
}else{
$query_posts = array(
'showposts' => $blog_article_number,
'ignore_sticky_posts' => 1,
'category__in' => $options_cat_id,
);
}
$the_query = new WP_Query( $query_posts );
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>