• I am having a problem with the nextpage tag in WP 3.0, and it appears to be a rewrite bug.

    Post url:
    /category/year/month/post-slug/

    When I click the following pagination link:
    /category/year/month/post-slug/2/

    I am redirected back to the original post url.

    Manually loading the following url works fine:
    /category/year/month/post-slug/?page=2

    I’m pretty sure this was not an issue in WP 3 RC1. I can’t remember if I ever tested post pagination in RC2 or RC3.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thanks SauloB! A good temporary fix seems to be to download multi-page toolkit, install their nav elements into your template, then change line 162 from:

    $page_link_type = '/';

    to

    $page_link_type = '/?page=';

    and voila. It will work from there

    This is a known bug with WordPress 3.0, and there is a bug fix logged in the Trac database, found here:
    http://core.trac.wordpress.org/ticket/13471

    As a temporary and immediate fix on my site, we made a very small change to the post-template.php file in the wp-includes directory.

    You need to replace line 622, which currently looks like this:
    $output .= '<a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">';

    With:
    $output .= '</a><a href="' . trailingslashit(get_permalink()) . user_trailingslashit('?page=' . $i, 'single_paged') . '">';

    THEN, also replace line 636 in exactly the same way, replacing:
    $output .= '</a><a href="' . trailingslashit(get_permalink()) . user_trailingslashit($i, 'single_paged') . '">';

    With:
    $output .= '</a><a href="' . trailingslashit(get_permalink()) . user_trailingslashit('?page=' . $i, 'single_paged') . '">';

    It should work fine after this fix.

    @ heygaryc

    Sorry, but this Trick don’t work on my Blog.

Viewing 3 replies - 16 through 18 (of 18 total)

The topic ‘nextpage tag’ is closed to new replies.