Support » Plugin: WP-Paginate » [Plugin: WP-Paginate] 404 on every page (except the first)

  • Resolved NQbbe


    I’ve installed wp-paginate on a new wordpress blog I’m setting up. However the second I click page 2 (or any one really) I get a 404.

    It seems wordpress doesn’t map the URL properly to index.php, when it’s /page/2

    Did I miss some settings or should I add some extra code to index.php ?

    I already have this at the top:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('posts_per_page=3&paged=' . $paged);

    Permalinks are set to: /%category%/%postname%

    Thanks a lot in advance 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • My bad, I should use the global posts_per_page setting, then everything works like a charm:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $postsPerPage = get_option('posts_per_page');
    query_posts('posts_per_page=' . $postsPerPage . '&paged=' . $paged);

    I have the same problem… The plugin works but not on category pages. When you click in the second page it goes away to the second general page, not to the second category page. The installation instructions don’t help me…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Paginate] 404 on every page (except the first)’ is closed to new replies.