1,
'post__in' => $sticky,
);
$featured = new WP_Query();
$featured->query( $featured_args );
// A featured image will only show if the post is sticky, has a thumbnail image and the thumbnail is at least as wide as HEADER_IMAGE_WIDTH.
if ( $sticky ) :
$featured->the_post();
?>
ID ), 'large-feature' ); // get the thumbnail image
// If the thumbnail image is at least as wide as our header image, display it along with the post excerpt.
if ( $image >= HEADER_IMAGE_WIDTH ) : ?>