'post', 'posts_per_page' => 5, 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, ); // Check for category. if (!empty($banner_slider_post_category)) : $post_slider_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $banner_slider_post_category, ), ); endif; $slider_posts = new WP_Query($post_slider_args); if ($slider_posts->have_posts()) : while ($slider_posts->have_posts()) : $slider_posts->the_post(); ?>
'post', 'posts_per_page' => 4, 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, ); // Check for category. if (!empty($banner_lists_post_category)) : $post_list_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $banner_lists_post_category, ), ); endif; $count = 1; $slider_list_posts = new WP_Query($post_list_args); if ($slider_list_posts->have_posts()) : while ($slider_list_posts->have_posts()) : $slider_list_posts->the_post(); ?>