Changeset 18253 for trunk/wp-content/themes/twentyeleven/archive.php
- Timestamp:
- 06/10/2011 11:01:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/archive.php
r17959 r18253 18 18 <div id="content" role="main"> 19 19 20 <?php21 /* Queue the first post, that way we know22 * what date we're dealing with (if that is the case).23 *24 * We reset this later so we can run the loop25 * properly with a call to rewind_posts().26 */27 if ( have_posts() )28 the_post();29 ?>30 31 20 <header class="page-header"> 32 21 <h1 class="page-title"> … … 42 31 </h1> 43 32 </header> 44 45 <?php46 /* Since we called the_post() above, we need to47 * rewind the loop back to the beginning that way48 * we can run the loop properly, in full.49 */50 rewind_posts();51 ?>52 33 53 34 <?php twentyeleven_content_nav( 'nav-above' ); ?>
Note: See TracChangeset
for help on using the changeset viewer.