diff --git a/wp-content/themes/twentyeleven/showcase.php b/wp-content/themes/twentyeleven/showcase.php index a31b5a33f..aeb3bad1a 100644 --- a/wp-content/themes/twentyeleven/showcase.php +++ b/wp-content/themes/twentyeleven/showcase.php @@ -53,6 +53,9 @@ get_header(); ?> // 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 @@ -151,6 +154,7 @@ get_header(); ?> +