WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

this is my code in Custom page Template

<?php query_posts('showposts=8'); ?>    
$count = 1;
if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?>

& this is wp_pagenavi code

<div class="more_entries">
<?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?><?php } ?></div>

page numbers showing but navigation not working

share|improve this question
i have tried all 'paged' solution, but failed. finally this old method works! theodin.co.uk/blog/design/… – user15647 Apr 29 '12 at 6:14
up vote 2 down vote accepted

Looks like Old Famous Problem with paged

try this for quey_posts();

 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

   'posts_per_page' => 8,
   'paged' => $paged
share|improve this answer
Thanks so much for this. – user8503 Oct 27 '11 at 2:54
dear could you plz look at this ? i dont know what is the bug wordpress.stackexchange.com/questions/32130/… – user8503 Oct 27 '11 at 2:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.