Support » Fixing WordPress » pagination problem

  • Resolved kierzniak

    (@kierzniak)


    Hi, my index-loop.php:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    <?php query_posts('cat=-8&paged=$paged'); ?>
    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
             <?php wp_pagenavi(); ?>
    <?php endif; ?>
    <?php wp_reset_query(); ?>

    I have installed wp_pagenavi() plugin and he is display correctly.
    But
    http://www.domain.com/page/2,
    http://www.domain.com/page/3
    is allways have this same effect, page with first 5 posts.

Viewing 1 replies (of 1 total)
  • Hmm someone have wrong example, i have just change this line:
    <?php query_posts('cat=-8&paged=$paged'); ?>
    to
    <?php query_posts('cat=-8&paged=' . $paged); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘pagination problem’ is closed to new replies.