Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $type = 'anime';
- $args=array(
- 'post_type' => $type,
- 'post_status' => 'publish',
- 'paged' => $paged,
- );
- $temp = $wp_query; // assign original query to temp variable for later use
- $wp_query = null;
- $wp_query = new WP_Query($args);
- ?>
- <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <?php get_template_part('content'); ?>
- <?php endwhile; ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement