Custom Taxonomies with Pagination getting 404, Page Not Found
-
For several custom taxonomies I am using taxonomy.php to show a list of posts. It works fine without pagination. And I can show the first page of the pagination but page 2 gets at 404, page not found.
In other words https://www.haringkids.com/lesson_plans/?curriculum=art works but https://www.haringkids.com/lesson_plans/?curriculum=art&paged=2 goes to “page not found”. (If you go to these pages, you will see some var_dumps, just ignore them.)Some of the code related to paging comes from:
https://wpquestions.com/question/show/id/701It seems to me the problem is not exactly with the pagination but once “paged=2” is added to the url, WP is not using taxonomy.php
Anyway. I am stymied. Any help would be much appreciated.
Here is my code:
[Code moderated as per the Forum Rules. Please use the pastebin]
- The topic ‘Custom Taxonomies with Pagination getting 404, Page Not Found’ is closed to new replies.