How to fix if when wordress pagination links redirect to the home page theme. A client of ours asked us to do some modifications on their website Without going into all the details, each category page follows a specific template and these templates need to support listing of content and pagination.

We did a lot of research into installed modules etc. and found that the reason that pagination was not working had to be something related to the core of the open source software. We were able to alter the settings such as the number of posts per page, it was just the listing for page 2, 3, 4, etc that was the problem.

To give some background, we tried a lot of things to fix the problem including: changing permalink structure from /%category%/%postname%/ to various other things; recreating the .htaccess file; altering the link structure in the WP loop; altering php snippets. Needless to say, none of these solutions worked.

Solution:

To fix this we left the permalink structure as "/%category%/%postname%/" and installed the Category Pagination Fix plugin. This works in our current version of Wordpress 3.3.1. This plugin fixes when pagination isn't working by using redirects when using a customer permalink structure that is more that 1 level deep.

This seems to be a common issue that has been arround since version 2.7 and is still present in 3.3.1