Changeset 17846 for trunk/wp-content/themes/twentyeleven/showcase.php
- Timestamp:
- 05/09/2011 10:54:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/showcase.php
r17790 r17846 43 43 $sticky = get_option( 'sticky_posts' ); 44 44 $featured_args = array( 45 'post__in' => $sticky, 46 'post_status' => 'published', 45 47 'posts_per_page' => 10, 46 'post__in' => $sticky,47 48 ); 48 49 … … 50 51 $featured = new WP_Query(); 51 52 $featured->query( $featured_args ); 53 54 // Proceed only if sticky posts exist. 55 if ( 0 < $featured->post_count ) : 52 56 53 57 /** … … 113 117 <?php endwhile; ?> 114 118 119 <?php 120 // Show slider only if we have more than one featured post. 121 if ( 1 < $featured->post_count ) : 122 ?> 115 123 <nav class="feature-slider"> 116 124 <ul> … … 140 148 </ul> 141 149 </nav> 142 </div> 150 <?php endif; // End check for more than one sticky post. ?> 151 </div><!-- .featured-posts --> 152 <?php endif; // End check for sticky posts. ?> 143 153 144 154 <section class="recent-posts"> … … 188 198 189 199 </ol> 190 </section> 200 </section><!-- .recent-posts --> 191 201 192 202 <div class="widget-area" role="complementary">
Note: See TracChangeset
for help on using the changeset viewer.