Make WordPress Core


Ignore:
Timestamp:
11/21/2011 04:20:49 PM (13 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/showcase.php

    r18348 r19379  
    2323            <div id="content" role="main">
    2424
    25                 <?php the_post(); ?>
     25                <?php while ( have_posts() ) : the_post(); ?>
    2626
    2727                <?php
     
    3333                        get_template_part( 'content', 'intro' );
    3434                ?>
     35
     36                <?php endwhile; ?>
    3537
    3638                <?php
Note: See TracChangeset for help on using the changeset viewer.