Codex tools: Log in
Languages: English • Italiano • Français • (Add your language)
Contents |
Iterate the post index in The Loop. Retrieves the next post, sets up the post, sets the 'in the loop' property to true.
<?php the_post(); ?>
This function does not accept any parameters.
This function does not return any values.
<?php while ( have_posts() ) : the_post(); echo '<h2>'; the_title(); echo '</h2>'; the_content(); endwhile; ?>
the_post() is located in wp-includes/query.php.