Category pagination fix – WordPress plugin

Update (07 December 2011) : An update has been made to the plugin and is available for download from WordPress plugins directory. This will fix pagination on custom post types as well.


Plugin name : Category pagination fix
Release date : 2009-04-25

Description

Fixes the bug in WordPress 2.7 ( may be in lower version also) in category listing page pagination. When you are using permalink structure as %category%/%postname% , second page URL of category listing page will be category-name/page/2 which WordPress identify “page” as post name. And will return 404 error page. This plug-in will fix the issue. This also fix the next and previous buttons bug in while using custom permalink structure.

I’m using this plug-in for this blog itself 🙂

Installation

1 . Unzip into your /wp-content/plugins/ directory.

2 . Activate the plugin through the ‘Plugins’ menu in WordPress

Known issues

No issues reported yet. Please report issues in comments

Download

Category pagination fix 1.o

View Comments

  • Same Problem here with WordPress 3.2 WP, "No Category Base" and "WP-PageNavi" plugins installed :(

    I'm so disapointed, I was so close to the Perfect URL Structure for SEO :P

    Can someone fix this? :( It would be greatly appreciated :)

    • nvm my problem is fixed with putting /%slug%/%postname% instead of /%category%/%postname%

      or maybe I did something else but now it Works :)

      • Having the same problem with 3.2.1.
        I tried changing to using /%slug%/%postname% which stopped the 404 & worked OK for categories, but the actual post URLs now include the actual text "%slug%" rather than the suitable replacement.

        I think have solved this one though... if you change all references of "$query_string['name']" for "$query_string['pagename']" it seems to do the trick.

  • Hello,

    I am using wp 3.1.1 and I set Permalink to /%postname%/.

    Since some days to click to categories get to the 404 error.
    If I click to the post itself, it works.

    I tried many suggestions around the net (including rewriting of the .htaccess) but it doesn't work.

    I tried your plugin too and it doesn't work...

    Do you have perhaps some other idea ?

    Thanks to help me.

    Best regards
    Fajy

  • I have the Bold theme by elegant themes and this fix didn't work for me. Secondary pages still don't appear. Please help.

  • I've recently installed the plugin on my WP 3.0.4 site. I am still getting the 404 error on page 2 or above of my custom post type archive page. I don't have any pages named the same as my post type so I'm not sure what else could be causing the issue.

    Could you suggest any other solutions?

    Thanks.
    Paul

    • This plugin seems to have issue with Custom post types. I will try on it over free time. Let me know if you got it fixed. I will upload to wordpress plugin directory so that everyone can use it

  • It is not working for me.

    I need to make a pagination for category page.

    Please have a look into plugin and let me know if you can help me.