section_category) ? $primebulletin_home_section->section_category : ''); $tiles_post_per_page = esc_html( isset($primebulletin_home_section->tiles_post_per_page) ? $primebulletin_home_section->tiles_post_per_page : 5); $home_section_title = isset($primebulletin_home_section->home_section_title) ? $primebulletin_home_section->home_section_title : ''; $tiles_post_query = new WP_Query( array('post_type' => 'post', 'posts_per_page' => $tiles_post_per_page,'post__not_in' => get_option("sticky_posts"), 'category_name' => esc_html( $section_category ) ) ); if( $tiles_post_query ->have_posts() ): $post_ids = array(); while( $tiles_post_query ->have_posts() ){ $tiles_post_query ->the_post(); $post_ids[] = get_the_ID(); } $posts_id = array(); if( $post_ids && count( $post_ids ) > 5 ){ $posts_id = array_chunk($post_ids,5); }else{ $posts_id[] = $post_ids; } if( empty( $home_section_title ) && $section_category ){ $catObj = get_category_by_slug( $section_category ); if( isset($catObj->name) && $catObj->name ){ $home_section_title = $catObj->name; } } ?>

name) && $catObj->name ){ $cat_title = $catObj->name; } $cat_link = get_category_link( $catObj->term_id ); ?>
'post', 'posts_per_page' => 1,'post__not_in' => get_option("sticky_posts"), 'post__in' => $post_ids_1 ) ); if( $tiles_query_1 ->have_posts() ){ while( $tiles_query_1 ->have_posts() ){ $tiles_query_1 ->the_post(); $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium_large'); $featured_image = isset( $featured_image[0] ) ? $featured_image[0] : ''; ?>
>

'post', 'posts_per_page' => 4,'post__not_in' => get_option("sticky_posts"), 'post__in' => $post_ids_2 ) ); if( $tiles_query_2 ->have_posts() ){ ?>
have_posts() ){ $tiles_query_2 ->the_post(); $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'primebulletin-500-300'); ?>
>