wp_pagenavi on archive.php
-
hi pagenavi is working fine on category pages and tag.php but not on my archive.php.
Maybe it’s my code?
<?php // query the posts query_posts( array( 'cat' => 12, 'order' => DESC, 'paged' => get_query_var('paged') ) ); // have some posts? if (have_posts()) : while (have_posts()) : the_post(); // begin the Loop; ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php the_post_thumbnail(); ?> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> <span class="postdate"><?php the_time('F jS, Y') ?></span> <?php the_excerpt(); ?> <span class="tags"><?php the_tags(' ',' , '); ?></span> </div> <?php endwhile; ?> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> <?php endif; ?>
any help gladly received.
What i get with this is pagination through my category 12… rather than pagination through the archive of my category 12.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘wp_pagenavi on archive.php’ is closed to new replies.