Problem with pagination
-
My WP is set to display 15 blog posts per page.
For specific Category I needed to change displaying posts sorted by title, not by date, as it is default. I also decided to lower number of posts per page for that category to 8.
Total number of posts in Category is 21.So I created category template and switched from natural QueryLoop to AQL. I’ve set order and number of posts as needed.
At first, it seemed fine until I tried to access third page (21 post, 8 per page, so there are 3 pages). Pagination shows 3 pages as expected. But, third page cannot be opened. I get error 404.
After some experimentation, I found out that it seems there is some conflict between global posts per page settings and posts per page setting in AQL.
If setting is AQL is lower than global, additional pages that should emerge (and pagination shows links to them), are not accessible. I get 404. It is like something, when paged page is accessed, checks number of posts according to global settings and disregards AQL setting.
If I set AQL to show more posts per page than global setting, then it seems there is no problem.
- The topic ‘Problem with pagination’ is closed to new replies.