The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

404 Error on Previous Entries and Sub-Pages, Custom Permalinks (3 posts)

  1. chazbeaner
    Posted 7 years ago #

    I have searched and googled through these forums and the WP trac tickets and still cannot find anything that works.


    - Static landing page for site, blog located on /blog/ using page template with custom query and pagination included.

    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    while ($wp_query->have_posts()) : $wp_query->the_post();

    - Query ended <?php $wp_query = null; $wp_query = $temp;?>
    - custom permalinks set to /blog/%category%/%postname%-%post_id%.html.


    - Any pages that are put as children of "Blog" return 404.
    - Navigating to "Older Entries" returns 404 on /blog/page/2/, however completely unstyled and unregulated query displays at /page/2/


    - Setting "Blog pages show at most" in WP Admin to any number (less, same as query, more) still returns 404.
    - Every single rewrite.php hack mentioned here: http://core.trac.wordpress.org/ticket/6603, returns a 404.
    - Permalink migration plugins return a 404.

    There has GOT to be a solution as there are many people trying to use this same set-up. Anybody?

  2. chazbeaner
    Posted 7 years ago #


  3. alvarix
    Posted 7 years ago #

    I just spent some time finding the solution, so I thought I would update the masses of open questions on this topic.

    See codex:
    Pagination Parameters

Topic Closed

This topic has been closed to new replies.

About this Topic