section_post_slide_cat) ? $primebulletin_home_section->section_post_slide_cat : ''); $section_category_1 = esc_html(isset($primebulletin_home_section->section_category_1) ? $primebulletin_home_section->section_category_1 : ''); $section_category_2 = esc_html(isset($primebulletin_home_section->section_category_2) ? $primebulletin_home_section->section_category_2 : ''); $section_category_3 = esc_html(isset($primebulletin_home_section->section_category_3) ? $primebulletin_home_section->section_category_3 : ''); $section_category_4 = esc_html(isset($primebulletin_home_section->section_category_4) ? $primebulletin_home_section->section_category_4 : ''); $ed_tab = esc_html(isset($primebulletin_home_section->ed_tab) ? $primebulletin_home_section->ed_tab : ''); $ed_flip_column = esc_html(isset($primebulletin_home_section->ed_flip_column) ? $primebulletin_home_section->ed_flip_column : ''); $home_section_title_1 = esc_html(isset($primebulletin_home_section->home_section_title_1) ? $primebulletin_home_section->home_section_title_1 : ''); $home_section_title_2 = esc_html(isset($primebulletin_home_section->home_section_title_2) ? $primebulletin_home_section->home_section_title_2 : ''); $banner_post_slide_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 5, 'post__not_in' => get_option("sticky_posts"), 'category_name' => esc_html($section_post_slide_cat))); $slider_arrows = esc_html(isset($primebulletin_home_section->ed_arrows_carousel) ? $primebulletin_home_section->ed_arrows_carousel : ''); $slider_dots = esc_html(isset($primebulletin_home_section->ed_dots_carousel) ? $primebulletin_home_section->ed_dots_carousel : ''); $slider_autoplay = esc_html(isset($primebulletin_home_section->ed_autoplay_carousel) ? $primebulletin_home_section->ed_autoplay_carousel : ''); if ($slider_arrows == 'yes' || $slider_arrows == '') { $arrow = 'true'; } else { $arrow = 'false'; } if ($slider_autoplay == 'yes' || $slider_autoplay == '') { $autoplay = 'true'; } else { $autoplay = 'false'; } if ($slider_dots == 'yes') { $dots = 'true'; } else { $dots = 'false'; } if (is_rtl()) { $rtl = 'true'; } else { $rtl = 'false'; } if ($ed_tab == 'yes' && ($section_category_1 || $section_category_2 || $section_category_3 || $section_category_4)) { $cat_array = array(); if ($section_category_1) { $cat_array[] = $section_category_1; } if ($section_category_2) { $cat_array[] = $section_category_2; } if ($section_category_3) { $cat_array[] = $section_category_3; } if ($section_category_4) { $cat_array[] = $section_category_4; } $banner_query_all = new WP_Query( $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'post__not_in' => get_option("sticky_posts"), 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'slug', 'terms' => $cat_array, ), ), ) ); } else { $banner_query_all = new WP_Query( $args = array( 'post_type' => 'post', 'posts_per_page' => 3, 'post__not_in' => get_option("sticky_posts"), 'category_name' => esc_html($section_category_1) ) ); } ?>
have_posts()): ?>

have_posts()) { $banner_post_slide_query->the_post(); $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium_large'); $featured_image = isset( $featured_image[0] ) ? $featured_image[0] : ''; ?>
>

'; echo esc_html( wp_trim_words( get_the_content(),10,'...' ) ); echo '

'; } ?>

have_posts()): ?>
have_posts()) { $banner_query_all->the_post(); $featured_image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'medium'); $featured_image = isset( $featured_image[0] ) ? $featured_image[0] : ''; ?>
>