// prevent implode error
    if (empty($mts_options['mts_featured_slider_cat']) || !is_array($mts_options['mts_featured_slider_cat'])) {
    $mts_options['mts_featured_slider_cat'] = array('0');
    }

    $slider_cat = implode(",", $mts_options['mts_featured_slider_cat']); $my_query = new WP_Query('cat='.$slider_cat.'&posts_per_page='.$mts_options['mts_featured_slider_num']);
    while ($my_query->have_posts()) : $my_query->the_post();
    ?>


  • '')); ?>




  • '')); ?>





if (!empty($mts_options['mts_featured_categories'])) {
foreach ($mts_options['mts_featured_categories'] as $section) {
$category_id = $section['mts_featured_category'];
$featured_categories[] = $category_id;
$posts_num = $section['mts_featured_category_postsnum'];
if ($category_id == 'latest') { ?>