WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. chazbeaner
    Member
    Posted 5 years ago #

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

    Set-up:

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

    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('showposts=10&cat=14,7,4,3,1,16,17,23'.'&paged='.$paged);
    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.

    Problems:

    - 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/

    Attempts:

    - 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
    Member
    Posted 5 years ago #

    anyone?

  3. alvarix
    Member
    Posted 5 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