WordPress loop in its simplest form
</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.
</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.