= 2 ? 2 : 1; // Setup Hero posts. $bloglo_args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => $hero_hover_slider_post_number_count, // phpcs:ignore WordPress.WP.PostsPerPage.posts_per_page_posts_per_page 'ignore_sticky_posts' => true, 'tax_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-quote' ), 'operator' => 'NOT IN', ), ), ); $bloglo_hero_categories = bloglo_option( 'hero_hover_slider_category' ); if ( ! empty( $bloglo_hero_categories ) ) { $bloglo_args['category_name'] = implode( ', ', $bloglo_hero_categories ); } $bloglo_args = apply_filters( 'bloglo_hero_hover_slider_query_args', $bloglo_args ); $bloglo_posts = new WP_Query( $bloglo_args ); // No posts found. if ( ! $bloglo_posts->have_posts() ) { return; } $bloglo_hero_bgs_html = ''; $bloglo_hero_items_html = ''; $bloglo_hero_elements = (array) bloglo_option( 'hero_hover_slider_elements' ); $bloglo_hero_readmore = isset( $bloglo_hero_elements['read_more'] ) && $bloglo_hero_elements['read_more'] ? ' bloglo-hero-readmore' : ''; while ( $bloglo_posts->have_posts() ) : $bloglo_posts->the_post(); // Background images HTML markup. $bloglo_hero_bgs_html .= '
'; // Post items HTML markup. ob_start(); ?>