Advertisement
Guest User

Epic Alex

a guest
May 18th, 2008
774
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php $my_query =
  2. new WP_Query('category_name=My Cat&showposts=5');
  3. while ($my_query->have_posts()) : $my_query->the_post();
  4. $do_not_duplicate[] = get_the_ID();?>
  5. <!-- Do Stuff Here -->
  6. <?php endwhile ; ?>
  7.  
  8. <?php query_posts('category_name=Second Cat&showposts=5'); ?>
  9. <?php while (have_posts()) : the_post();
  10. if (array_search(get_the_ID(), $do_not_duplicate) !== false)
  11. continue; update_post_caches($posts); ?>
  12. <!-- Do Stuff Again -->
  13. <?php endwhile ; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement