Changeset 17802 for trunk/wp-content/themes/twentyeleven/archive.php
- Timestamp:
- 05/04/2011 10:54:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/archive.php
r17787 r17802 18 18 <div id="content" role="main"> 19 19 20 <?php the_post(); ?> 20 <?php 21 /* Queue the first post, that way we know 22 * what date we're dealing with (if that is the case). 23 * 24 * We reset this later so we can run the loop 25 * properly with a call to rewind_posts(). 26 */ 27 if ( have_posts() ) 28 the_post(); 29 ?> 21 30 22 31 <header class="page-header"> … … 34 43 </header> 35 44 36 <?php rewind_posts(); ?> 45 <?php 46 /* Since we called the_post() above, we need to 47 * rewind the loop back to the beginning that way 48 * we can run the loop properly, in full. 49 */ 50 rewind_posts(); 51 ?> 37 52 38 53 <?php twentyeleven_content_nav( 'nav-above' ); ?> … … 41 56 <?php while ( have_posts() ) : the_post(); ?> 42 57 43 <?php get_template_part( 'content', get_post_format() ); ?> 58 <?php 59 /* Include the Post-Format-specific template for the content. 60 * If you want to overload this in a child theme then include a file 61 * called loop-___.php (where ___ is the Post Format name) and that will be used instead. 62 */ 63 get_template_part( 'content', get_post_format() ); 64 ?> 44 65 45 66 <?php endwhile; ?>
Note: See TracChangeset
for help on using the changeset viewer.