Advertisement
alchymyth

3loops

Feb 2nd, 2012
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php $my_query = new WP_Query('tag=starred&posts_per_page=5');
  2.   while ($my_query->have_posts()) : $my_query->the_post();
  3.   $do_not_duplicate[] = $post->ID; ?>
  4. <!-- do carousel stuff -->
  5. <?php endwhile; ?>
  6.  
  7. <?php query_posts(array('post__not_in'=>$do_not_duplicate, 'posts_per_page'=>4));
  8.  if (have_posts()) : while (have_posts()) : the_post();
  9.  $do_not_duplicate[] = $post->ID; ?>
  10. <!-- do loop stuff, 4 posts -->
  11. <?php endwhile; endif; ?>
  12.  
  13. <?php query_posts(array('post__not_in'=>$do_not_duplicate));
  14.  if (have_posts()) : while (have_posts()) : the_post();
  15.  ?>
  16. <!-- continue loop stuff, rest of the posts -->
  17. <?php endwhile; endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement