WordPress loop in its simplest form

while (have_posts()) : the_post();

the_content();

endwhile;

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

Tags: