Advertisement
Guest User

Untitled

a guest
Apr 24th, 2012
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. $temp = $wp_query;
  2. $wp_query= null;
  3.                        
  4. $args=array(
  5. 'post_type' => 'Nieuws',
  6. 'paged' => $paged,
  7. 'posts_per_page' => 2,
  8. 'order' => 'desc'
  9. );
  10.                        
  11. $wp_query = new WP_Query($args);
  12.                        
  13. while ($wp_query->have_posts()) : $wp_query->the_post();
  14. $do_not_duplicate = $post->ID;
  15. ?>
  16. // DO THINGS //
  17.  
  18. <?php
  19. endwhile;  
  20. ?>
  21.                    
  22. <?php if(function_exists('wp_paginate')) {
  23.    wp_paginate();
  24. } ?>
  25.                    
  26. <?php $wp_query = null; $wp_query = $temp;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement