Support » Plugin: WP-PageNavi » [Plugin: WP-PageNavi] Works only on first 5 pages.

  • Resolved osasko

    (@osasko)


    Pagenavi works perfect when selecting page number 1 to 5 from my homepage.

    However page 6 onwards and “Last” doesn’t seem to work.
    (Gives me a 404 error)

    Archive.php
    <?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); }
    else { ?>

    <div class=”right”><?php next_posts_link(‘Next Page »’) ?></div>
    <div class=”left”><?php previous_posts_link(‘« Previous Page’) ?></div>
    <?php } ?>

    Not sure why it works perfect till page 5 , but not from there onwards?

    Thanks for any help

    http://wordpress.org/extend/plugins/wp-pagenavi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Are you using a custom query in that archive/category?

    Hi, a friend looked at my blog yesterday and apparently the issue comes from the Arthemia theme I use. It by default shows 5 posts per page. So I needed to go to settings > reading and “Blog Posts to Show” in my admin panel and change that to 5 as well. (Was on 10 by default).

    So all works perfect now.

    Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-PageNavi] Works only on first 5 pages.’ is closed to new replies.