Skip to Content

WordPress loop in its simplest form

Posted on One min read

</p> <p>while (have_posts()) : the_post();</p> <p>the_content();</p> <p>endwhile;</p> <p>

To control the posts, use query_posts() function like query_posts(‘page_id=7’) before the loop code.