PageNavi and Pages
-
I created a PhP call to call certain categories to specific pages for my archives. The problem is I can’t go any further back then the 12 posts that are previewed on the page. I am using the PageNavi plug in and was wondering if there is a way to make it work with pages instead of just categories. Is what I am doing even possible with this plugin or am I just simply missing something. Below is my PhP Code that I am using on the page.
<?php $my_query = new WP_Query('category_name= '. news .'&showposts=12'); $postNumber = 0; while ($my_query->have_posts() && $postNumber < 6) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> <?php while ($my_query->have_posts() && $postNumber < 12) : $my_query->the_post();$do_not_duplicate = $post->ID; ?> <div class="navigation"> <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?> </div>
- The topic ‘PageNavi and Pages’ is closed to new replies.