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