absint( get_theme_mod( 'news_num_post', 3 ) ), 'ignore_sticky_posts' => true, ) ); $layout = absint( get_theme_mod( 'news_layout', 3 ) ); if ( ! $layout ) { $layout = 3; } $post_class = ''; switch ( $layout ) { case 1: $post_class = 'col-md-12'; break; case 2: $post_class = 'col-md-6'; break; case 4: $post_class = 'col-md-6 col-lg-3'; break; default: $post_class = 'col-md-6 col-lg-4'; break; } $classes = 'section-news section-padding section-padding-lg'; ?>

have_posts() ) : ?> have_posts() ) : $latest_posts->the_post(); ?>