Page 13+ returns 404 when WP-PageNavi used with WP_Query
-
I have several custom post types(CPTs), and in a cpt archive page, I use WP_Query to get posts from those CPTs.
It works fine and it has 164 posts found, posts_per_page is set to 12, max_num_pages is 14.
However, page 13 and 14 returns 404.Here, I change posts_per_page to 16, that makes max_num_pages to 11.
Page 11 shows fine with the last 4 posts.So, number of posts is fine and fetched ok. Why page 13 and up get 404?
I have already find workaround to use pre_get_posts, and works perfect.
But I want to know why this happened.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Page 13+ returns 404 when WP-PageNavi used with WP_Query’ is closed to new replies.