cat_name] = $category->cat_ID;
}
$options_cat_id = array();
//$p=0;
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;}
}
//$p++;
}
}
global $wpdb;//ignore_sticky_posts //caller_get_posts 3.1 del
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,
));
}
if (have_posts()) : while (have_posts()) : the_post();
?>