WordPress.org

Forums

another 404 on page 2 issue (2 posts)

  1. zebapy
    Member
    Posted 2 years ago #

    So I've googled a million times and been on countless threads here, but my issue persists.

    I am getting a 404 page on my 'page 2' of latest blog posts page (index).

    I'm using a static front-page.

    I've:
    deactivated/reactivated plugs
    reset permalinks / tried variants
    adjusted 'most posts on blog' number.

    I am using this post query

    $page = (get_query_var('paged')) ? get_query_var('paged') : 2;
    query_posts("showposts=2&paged=$page");

    My blog page is domain.com/news so the page tries to visit domain.com/news/page/2 for the next listing but it's just a 404.

    PLEASE help.

  2. openwp3
    Member
    Posted 2 years ago #

    I'm having a very similar issue with WP_Query for a custom taxonomy. Unfortunately received no responses so I closed my topic, but here are some links that have been helpful (although haven't resolved my issue yet):

    http://wordpress.stackexchange.com/questions/16353/custom-taxonomy-not-working-with-posts-per-page-in-new-wp-query-pagination-prob?rq=1

    This person seems to have worked it out by adding rewrite rules:

    http://wordpress.stackexchange.com/questions/26673/getting-404-on-taxonomy-page

    Hope this helps you in some way.

Topic Closed

This topic has been closed to new replies.

About this Topic