WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page navigation problems on author page (5 posts)

  1. Dezio
    Member
    Posted 1 year ago #

    I've a problem by adding a pagination under the Author page.

    http://pastebin.com/9KrEBqVM

    If I click to the second page appears a 404 error.. I don't know why cause I use the same script/template on some category pages and all works correctly..

    Any helps?

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    what is the code of number_paginate() ?

    as a test, try and replace it with http://codex.wordpress.org/Function_Reference/posts_nav_link

    number_paginate() seems to be theme specific function - what theme are you using?

  3. Dezio
    Member
    Posted 1 year ago #

    This is the code of number_paginate()

    http://pastebin.com/VyJQzHs7

    I'm using an Organic Themes

  4. alchymyth
    Forum Moderator
    Posted 1 year ago #

    the reason is that the 'posts per page' from the theme options is not the same as set under dashboard - settings - reading;

    there are some topics in the forum, but there does not seem to be an easy solution;

    http://wordpress.org/support/topic/explanation-and-workaround-for-error-404-on-category-pagination?replies=1

    using pre_get_posts to set the different amount of posts per page seems to be the most suitable appraoch; http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts

  5. Dezio
    Member
    Posted 1 year ago #

    I found a solution.
    Just set the same post per page under settings/reading and "framework" of the theme :)

    thank you

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.