$sticky, 'post_status' => 'publish', 'posts_per_page' => 10, 'no_found_rows' => true, ); // The Featured Posts query. $featured = new WP_Query( $featured_args ); // Proceed only if published posts exist if ( $featured->have_posts() ) : /** * We will need to count featured posts starting from zero * to create the slider navigation. */ $counter_slider = 0; // Compatibility with versions of WordPress prior to 3.4. if ( function_exists( 'get_custom_header' ) ) $header_image_width = get_theme_support( 'custom-header', 'width' ); else $header_image_width = HEADER_IMAGE_WIDTH; ?>