Changeset 6134
- Timestamp:
- 11/16/2017 05:35:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php
r6098 r6134 110 110 111 111 <?php 112 $featured = new \WP_Query( [ 'posts_per_page' => 1, 'ignore_sticky_posts' => true ] ); 112 $featured = new \WP_Query( [ 113 'posts_per_page' => 1, 114 'post_status' => 'publish', 115 'ignore_sticky_posts' => true, 116 'no_found_rows' => true, 117 ] ); 113 118 while ( $featured->have_posts() ) : 114 119 $featured->the_post(); … … 116 121 echo apply_filters( 'the_excerpt', get_the_excerpt() ); 117 122 endwhile; 118 wp_reset_ query();123 wp_reset_postdata(); 119 124 ?> 120 125 </div>
Note: See TracChangeset
for help on using the changeset viewer.