Make WordPress Core


Ignore:
Timestamp:
11/21/2011 04:20:49 PM (15 years ago)
Author:
westi
Message:

TwentyEleven: Always call the loop properly in all template files rather than just calling the_post(). Fixes #18794 props mfields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/sidebar-page.php

    r17959 r19379  
    1414                        <div id="content" role="main">
    1515
    16                                 <?php the_post(); ?>
     16                                <?php while ( have_posts() ) : the_post(); ?>
    1717
    18                                 <?php get_template_part( 'content', 'page' ); ?>
     18                                        <?php get_template_part( 'content', 'page' ); ?>
    1919
    20                                 <?php comments_template( '', true ); ?>
     20                                        <?php comments_template( '', true ); ?>
     21
     22                                <?php endwhile; // end of the loop. ?>
    2123
    2224                        </div><!-- #content -->
Note: See TracChangeset for help on using the changeset viewer.