$sticky,
'post_status' => 'publish',
'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;
?>
have_posts() ) : $featured->the_post();
// Increase the counter.
$counter_slider++;
// If there's only one sticky post, add a class to make the sticky post content area wider.
$one_sticky = '';
if ( $featured->post_count == 1 ) :
$one_sticky = 'one-sticky';
endif;
?>
post_count > 1 ) :
?>
have_posts() ) : $featured->the_post();
$counter_slider++;
if ( 1 == $counter_slider )
$class = 'class="active"';
else
$class = '';
?>
-