1. Home
  2. Wordpress
  3. Posts loop
#wordpress#php

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

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

        <?php the_content(); ?>

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