WordPress.org

Ready to get started?Download WordPress

Forums

Pagination broken since WordPress 3.0 (13 posts)

  1. grahamkw
    Member
    Posted 3 years ago #

    Apologies if this is a REALLY DUMB question, or the answer is freely available elsewhere, but it's driving me nuts.

    I run http://www.tvcream.co.uk, and for the past year I've been happily running the WP Page Numbers plug-in to provide pagination within categories with multiple posts. You can see an example here: http://www.tvcream.co.uk/?cat=3

    Since upgrading to WordPress 3.0, whenever I click on one of the page links (i.e. page 5, which takes me to http://www.tvcream.co.uk/?cat=3&paged=5) I get a "Page not found" error. Although, I should add, very occasionally, if I try page 2 or 3, the link works.

    I have rolled back to 2.9 and that fixed it. But I'd rather not have to do this, because plug-ins and the like start to fall out of date. And the problem persists with 3.01.

    So, any suggestions, please? The theme I'm using is Zinmag Remedy, if that helps!

  2. threestyler
    Member
    Posted 3 years ago #

    Try updating the permalinks go to wp-admin>permalinks and click on save changes. If that fails check if there is a .htaccess file in the root WordPress folder and post the contents here.

  3. grahamkw
    Member
    Posted 3 years ago #

    Hello. Updating the permalinks hasn't helped, alas.

    The contents of the .htaccess file are as follows:

    #set max upload file size
    php_value upload_max_filesize 15M

    #set max post size
    php_value post_max_size 20M

    php_value max_input_time 200
    php_value max_execution_time 200

  4. latte62
    Member
    Posted 3 years ago #

    We are having the same problem. I will be interested in the answer also.

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

  6. grahamkw
    Member
    Posted 3 years ago #

    Hello Esmi

    Yes, I've tried both - with no joy. Is it worth trying to delete the .htaccess file?

  7. grahamkw
    Member
    Posted 3 years ago #

    Oh, and it's probably worth reiterating, the pagination works fine under WordPress 2.9.

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you checked that the WP Page Numbers plug-in is compatible with WP 3.0.1?

  9. grahamkw
    Member
    Posted 3 years ago #

    It hasn't been updated for a while - however, other paginating plug-ins which essentially do the same thing (and have been updated) aren't working either.

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    I don't think your .htaccess file has anything to do with this. You're not using a custom permalink structure , so no rewrites to get screwed up. If it's not plugins, then the next most likely candidate is the theme itself.

  11. grahamkw
    Member
    Posted 3 years ago #

    So, something about the theme which doesn't like WordPress 3.0+?

  12. mrscottdiehl
    Member
    Posted 3 years ago #

    I am having this problem as well.

    When in admin > media library, and I hover over the "page 2" link I see this "http://wp-admin/uploads.php..."

    For some reason my root directory isn't being inserted.

    The siteurl and home url are fine in the database. Any ideas?

  13. dsided
    Member
    Posted 3 years ago #

    I was having the same problem - it just showed page 2, when there were at least 5 pages.

    Found a solution from keesiemeijer on the following page:
    http://wordpress.org/support/topic/pagination-of-posts-in-page

    Here is a copy of his answer:

    This was my loop:

    $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query("paged=$page&cat=3");
    if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    while ($wp_query->have_posts()) : $wp_query->the_post();

    and ending of the loop with this

    <?php endwhile ?>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    <?php $wp_query = null; $wp_query = $temp; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic