WP-PageNavi and Custom post Types
-
Hey,
I’m using custom post types, but when using:
<?php $loop = new WP_Query( array( 'post_type' => 'Post-Type_Name') );?>
PageNavi doesn’t show. I’ve found the solution for normal posts:
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query('paged=' . $paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
But how to implement that for Custom Types?
Thanks a lot,
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘WP-PageNavi and Custom post Types’ is closed to new replies.