WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Works only on first 5 pages. (3 posts)

  1. osasko
    Member
    Posted 1 year ago #

    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/

  2. Hiranthi
    Member
    Posted 1 year ago #

    Are you using a custom query in that archive/category?

  3. osasko
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.