Changeset 17847
- Timestamp:
- 05/09/2011 11:15:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/showcase.php
r17846 r17847 44 44 $featured_args = array( 45 45 'post__in' => $sticky, 46 'post_status' => 'publish ed',46 'post_status' => 'publish', 47 47 'posts_per_page' => 10, 48 48 ); 49 49 50 50 // The Featured Posts query. 51 $featured = new WP_Query(); 52 $featured->query( $featured_args ); 51 $featured = new WP_Query( $featured_args ); 53 52 54 53 // Proceed only if sticky posts exist. 55 if ( 0 < $featured->post_count) :54 if ( $featured->have_posts() ) : 56 55 57 56 /** … … 119 118 <?php 120 119 // Show slider only if we have more than one featured post. 121 if ( 1 < $featured->post_count) :120 if ( $featured->post_count > 1 ) : 122 121 ?> 123 122 <nav class="feature-slider">
Note: See TracChangeset
for help on using the changeset viewer.