diff --git a/wp-content/themes/twentyeleven/showcase.php b/wp-content/themes/twentyeleven/showcase.php
index 2246f1ad3..7104fc223 100644
--- a/wp-content/themes/twentyeleven/showcase.php
+++ b/wp-content/themes/twentyeleven/showcase.php
@@ -42,14 +42,18 @@ get_header(); ?>
*/
$sticky = get_option( 'sticky_posts' );
$featured_args = array(
- 'posts_per_page' => 10,
'post__in' => $sticky,
+ 'post_status' => 'published',
+ 'posts_per_page' => 10,
);
// The Featured Posts query.
$featured = new WP_Query();
$featured->query( $featured_args );
+ // Proceed only if sticky posts exist.
+ if ( 0 < $featured->post_count ) :
+
/**
* We will need to count featured posts starting from zero
* to create the slider navigation.
@@ -112,6 +116,10 @@ get_header(); ?>
+ post_count ) :
+ ?>
-
+
+
+