1. Home
  2. Wordpress
  3. Posts loop

WordPress loop iterates through the_post object allowing you to get the post data.

#wordpress#php
<?php while ( have_posts() ) : the_post(); ?>

        <?php the_content(); ?>

<?php endwhile;
wp_reset_query();?>
copy
Full Wordpress cheatsheet