Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $temp = $wp_query;
- $wp_query= null;
- $args=array(
- 'post_type' => 'Nieuws',
- 'paged' => $paged,
- 'posts_per_page' => 2,
- 'order' => 'desc'
- );
- $wp_query = new WP_Query($args);
- while ($wp_query->have_posts()) : $wp_query->the_post();
- $do_not_duplicate = $post->ID;
- ?>
- // DO THINGS //
- <?php
- endwhile;
- ?>
- <?php if(function_exists('wp_paginate')) {
- wp_paginate();
- } ?>
- <?php $wp_query = null; $wp_query = $temp;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement