Codex tools: Log in
Languages: English • Italiano • Français • (Add your language)
Contents |
Itera l'indice dell'articolo nel Il Loop. Recupera l'articolo successivo, imposta l'articolo ed imposta la proprietà 'in the loop' a true.
<?php the_post(); ?>
Questa funzione non accetta alcun paramentro.
Questa funzione non restituisce alcun valore.
<?php while ( have_posts() ) : the_post(); echo '<h2>'; the_title(); echo '</h2>'; the_content(); endwhile; ?>
the_post() si trova in wp-includes/query.php.
Query Tags: WP_Query (Classe), get_query_var(), query_posts(), have posts(), the_post(), rewind_posts(), wp_reset_postdata(), wp_reset_query()