Pagination doesn’t seem to be working?
-
I have a custom page template that’s being assigned to a page. In short, a link elsewhere in the site will link to this page /more-articles/?id=[some-cat-id]
The results appear to be pulling correctly, but for some reason I cannot figure out why pagination isn’t working right.
According to $wp_query->max_num_pages; (which results to 0) there should be one page of results for a query I’m testing with, but that’s wrong. There are 6 results with 5 items per page, so there should be 5 results on the first page and 1 result on the second page.
I do see a link to see the other page, but when I click it, I see a second page with the same results as the first page. Weird!
Here is the code for this page in hopes that it will help figure this out:
- The topic ‘Pagination doesn’t seem to be working?’ is closed to new replies.