wp-pagenavi keeps loading first page
Posted
by
Adrian
on Stack Overflow
See other posts from Stack Overflow
or by Adrian
Published on 2012-10-06T15:32:33Z
Indexed on
2012/10/06
15:36 UTC
Read the original article
Hit count: 286
Hi I had done this correctly but unfornately its still not working, no matter what page I click in the pagination it keeps loading the first page, is it something to do with $paged
?
<?php
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
?>
<?php query_posts('cat=14&posts_per_page=3'."&paged=$paged".get_query_var('page')); ?>
<?php
$id = get_the_ID();
$count = 0;
if (have_posts()) : ?>
<?php while ( have_posts() ) : the_post();
.......do stuff
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php wp_reset_query();?>
<?php endif; ?>
© Stack Overflow or respective owner