The Loop is the heart and soul of WordPress. It is the one that processes each Post and display to the world wide web what’s been cookin’ behind the WordPress admin panel.
Some quick background reading may be beneficial before proceeding further with designing WordPress Loops.
The following are few models of how the Loop could be applied to a WordPress installation. The sample codes are to be implemented in
index.php in a multiple-template theme (the one which has
page.php, etc) or in
home.php when single-template theme (the one which has only
index.php) is used.