$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() ) :
?>
have_posts() ) : $featured->the_post();
if ( '' != get_the_post_thumbnail( $post->ID ) ) {
// Now let's check the image.
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'slider-img' );
// If it is smaller than 950 in width, let's skip
if ( $image[1] < 660 )
continue;
} else {
continue;
}
?>
-
>