section_category) ? $bigbulletin_home_section->section_category : ''); // $tiles_post_per_page = esc_html(isset($bigbulletin_home_section->tiles_post_per_page) ? $bigbulletin_home_section->tiles_post_per_page : 6); $home_section_title = isset($bigbulletin_home_section->home_section_title) ? $bigbulletin_home_section->home_section_title : ''; $tiles_post_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 6, '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) > 6) { $posts_id = array_chunk($post_ids,6); } 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; } } if (is_rtl()) { $rtl = 'true'; } else { $rtl = 'false'; } ?>