slug; } else { $blog_cat_slug = ''; } echo '
'; if(!empty($btitle)) { echo '
'; echo '

'; echo ''.esc_html($btitle).''; echo '

'; echo '
'; } $lay = ascend_get_postlayout($type); global $kt_grid_columns, $kt_blog_loop, $kt_grid_carousel; $kt_blog_loop['loop'] = 1; $kt_grid_columns = $blogcolumns; $kt_grid_carousel = false; if ($blogcolumns == '2') { $itemsize = 'col-xxl-4 col-xl-6 col-md-6 col-sm-6 col-xs-12 col-ss-12'; } else if ($blogcolumns == '3'){ $itemsize = 'col-xxl-3 col-xl-4 col-md-4 col-sm-4 col-xs-6 col-ss-12'; } else { $itemsize = 'col-xxl-25 col-xl-3 col-md-3 col-sm-4 col-xs-6 col-ss-12'; } ?>
> query(array( 'orderby' => 'date', 'order' => 'DESC', 'category_name' => $blog_cat_slug, 'post_type' => 'post', 'ignore_sticky_posts' => false, 'posts_per_page' => $blogcount ) ); if ( $wp_query ) : $kt_blog_loop['count'] = $wp_query->post_count; while ( $wp_query->have_posts() ) : $wp_query->the_post(); if($lay['sum'] == 'full'){ if (has_post_format( 'quote' )) { get_template_part('templates/content', 'post-full-quote'); } else { get_template_part('templates/content', 'post-full'); } } else if($lay['sum'] == 'grid') { if($lay['highlight'] == 'true' && $kt_blog_loop['loop'] == 1) { get_template_part('templates/content', get_post_format()); } else { ?>
'; echo ''.esc_html($readmore).''; echo '
'; } echo '';