HTML Remix - Dont copy code, remix it!

April 25, 2009

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


Incoming search terms:

category pagination wordpress, wordpress category pagination, Category pagination fix, wordpress permalinks pagination, wordpress pagination permalink, wordpress permalinks paging, wordpress pagination not working permalinks, wordpress permalink pagination, wp paginate problem permalinks, wordpress identify have pagination


57 Responses to “Category pagination fix – WordPress plugin”

  1. Sam Neirynck says:

    Is there a bugfix for WordPress 3.0 available yet?

  2. Sorry should have read the comments before posting as I can see you’ve replied.

    To answer you’re question, using the plugin it gives me a 404 for news category on any page beyond p1, so /news/page/2/, /news/page/3/ etc don’t work. Funny that it works ok for blog category.

    Ps. subscribe to comments on the blog would be great, as would edit comment :)

  3. This worked for the blog category, but when I had a new category it stoppped working (ie page 2 was 404).

    WordPress 3

    Similar problem to @corey

  4. In WP3 this works for the category ‘blog’, but for category ‘news’ it breaks. pagination says: /news/page/4/ – same as for blog. Grrr. Any ideas?

    • Remiz says:

      @John : I havent tried this on WP3. Is it working?
      You said “In WP3 this works for the category ‘blog’, but for category ‘news’ it breaks. ” Is it after using this plugin or without ?
      Also, pagination URL you sent is /news/page/4/ is /news/page/2/ working. I should wait till this weekend to get my hands on WP3

  5. Brilliant, fixed! The bug is still here in wordpress 3.0

  6. AJ Quick says:

    Works great in 2.9.2

  7. [...] Category Pagination Fix: If you are using custom permalinks on your WordPress blog, you can end up with 404 errors when browsing through your categories. This plugin fixes this, so that readers can browse through your categories' archives without any problems. [...]

  8. [...] Follow this link: Category pagination fix – WordPress plugin | HTML Remix [...]

  9. Scott says:

    That bug has plagued me for ages!! Thanks for the nice clean fix. I just added it to my functions.php file and presto.

  10. Darfuria says:

    Great! Thanks for this.

  11. Levi says:

    Tried your plugin on my local dev site, and it got rid of the 404 error but now page 2 is blank this is what im using for the loop is it correct

  12. Duality says:

    thanks sir,this plugin solved my problem

  13. Rob says:

    A million thanks to you Sir! This problem has been bugging me for months and this plugin fixes it. Seriously, thankyou.

  14. tekstyle says:

    didn’t fix my problem. still 404 ((
    http://tekstyle.me/page/2/

  15. [...] Plugin schafft nun Abhilfe und behebt das Problem: Category pagination fix [...]

  16. Corey says:

    Remiz,

    Thanks for the suggestions! It was the URL slug and the symbols conflicting. I don’t know if I ever would’ve noticed that otherwise…

    Thanks again!

  17. Kelly says:

    Is this plugin necessary for WP 2.7.1, or just for 2.7?

  18. Corey says:

    Plugin has fixed my problem! ….sort of. Now I have multiple pages and they don’t report the error (thanks to the plugin working), but now the first post of each page is reporting an error. The rest of them work.

    Take a look here:

    http://insighteastorlando.com/wordpress/index.php/past-articles/health-care/page/2

    • Remiz says:

      @Corey
      I’ve checked your website. I guess it might be conflict with any other plugin, or I’ve noticed that the url slug of first post of both page contains ” or ‘ symbols, which may be making issue. Try the same url disabling this plug-in, and check by activating the same by changing the slug

      Same scenario is working fine here http://www.htmlremix.com/google/page/2

      Thanks for reporting issue

  19. baron says:

    Works great, thank you

  20. [...] This plugin is to fix a bug in WordPress while you are using custom permalink structure. See the project details page for more info. And have a look on my other projects [...]

Leave a Reply