section_category) ? $boundlessnews_home_section->section_category : ''); $slider_arrows = esc_html(isset($boundlessnews_home_section->ed_arrows_carousel) ? $boundlessnews_home_section->ed_arrows_carousel : ''); $slider_dots = esc_html(isset($boundlessnews_home_section->ed_dots_carousel) ? $boundlessnews_home_section->ed_dots_carousel : ''); $slider_autoplay = esc_html(isset($boundlessnews_home_section->ed_autoplay_carousel) ? $boundlessnews_home_section->ed_autoplay_carousel : ''); $home_section_title = esc_html(isset($boundlessnews_home_section->home_section_title) ? $boundlessnews_home_section->home_section_title : ''); $carousel_post_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 12, 'post__not_in' => get_option("sticky_posts"), 'category_name' => esc_html($section_category))); if ($slider_autoplay == 'yes') { $autoplay = 'true'; } else { $autoplay = 'false'; } if ($slider_dots == 'yes') { $dots = 'true'; } else { $dots = 'false'; } if (is_rtl()) { $rtl = 'true'; } else { $rtl = 'false'; } 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( $carousel_post_query->have_posts() ): ?>