[Resolved] Custom Post Types, Categories and Pagination

I have a site I am working on that uses custom post types extensively. I have been able to get pagination on custom post types working correctly. Unfortunately, when I go to a category page and try to go to page 2 I get a 404 error.

Nevermind, got things sorted. The source of the issue is that my “Blog pages show at most” setting under Settings > Reading was set to 8, whereas the query_posts() function was set to use 2. For some reason or another, using the two different values caused the issue.

Removing the posts_per_page variable from the query_posts() function or setting both to use the same number fixes things.

Viewing 1 replies (of 1 total)

The topic ‘[Resolved] Custom Post Types, Categories and Pagination’ is closed to new replies.