In advanced themes, there are often situations where you would want to display multiple Loops consisting of posts with different criteria. When doing so, you should make sure not to alter the normal default Loop or else some template tags will not work appropriately.
First, decide what kind of Loops you want to create. Perhaps you want to create two Loops, based on different categories. Perhaps one Loop should have featured posts while the other has the default posts based on the page URL. For this example, we're going to create two category Loops.
To create the two category Loops, you need to create two separate instances of the WP_Query
class. Copy the following code snippet into one of your template files:
<?php $query1 = new WP_Query(array('cat'=>get_cat_ID('aciform'))); if( $query1->have_posts() ) { ?><h1>Aciform Posts</h1><?php while($query1->have_posts()) { $query1->the_post(); ?><h2>...