$value) { if($value == 1) { $cats[] = $key; } }
}
$post_array_slider = array(
'showposts' => $number_slider,
'category__in' => $cats,
'ignore_sticky_posts' => 1,
'offset' => $number_offset_post_right
);
$jellywp_widget_slider = new WP_Query($post_array_slider);
$i=0;
while ($jellywp_widget_slider->have_posts()) {
$jellywp_widget_slider->the_post();
$i++;
$post_id = get_the_ID();
?>