Multiple Loop
-
I tried to create a multiple loop with different set of css but no matter what I tried, it doesn't work. Here's my code : <strong>Loop1</strong>
<?php query_posts($query_string . ‘$showposts=4’); ?>
<?php while (have_posts()) : the_post(); ?><div class=”article”>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php post_image(‘attachment’); ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?><p class=”date”><?php the_time(‘D, M j’) ?> <!– by <?php the_author() ?> –></p>
<p><?php the_excerpt(‘Read the rest of this entry »’); ?></p>
<p>Comments <?php comments_popup_link(‘(0)’, ‘(1)’, ‘(%)’); ?> · ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>Read More</p>
</div><?php endwhile; ?>
</div></div>`Loop 2
<div class="mainarticles-sub"><div class="clearfix"> <?php query_posts($query_string . 'showposts=4&&offset=4'); ?> <?php while (have_posts()) : the_post(); ?> <div class="article"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php post_image('attachment'); ?></a><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <p class="date"><strong><?php the_time('D, M j') ?> <!-- by <?php the_author() ?> --></strong></p> <p><?php the_excerpt('Read the rest of this entry »'); ?></p> <p><strong>Comments <?php comments_popup_link('(0)', '(1)', '(%)'); ?> · </strong><a class="continue" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More</a></p> </div> <?php endwhile; ?> </div></div>
The posts keeps repeating.
Please advise.
Thanks in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Multiple Loop’ is closed to new replies.