Somehow main page pagenavi does not work after upgrade to clipper 1.5 dev
Hi,
I upgraded my site to WP3.81 and clipper 1.5 dev, I found that somehow the main page pagenavi does not work,
the front page is working fine, page
http://www.mywebsite.com is OK,
but
http://www.mywebsite.com/page/2,
http://www.mywebsite.com/page/3 ... will return below error:
Page Not Found
Sorry, but you are looking for something that isn't here.
I turn on the debug and found that the query is
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'unreliable' OR wp_posts.post_status = 'tr_pending' OR wp_posts.post_status = 'tr_failed' OR wp_posts.post_status = 'tr_completed' OR wp_posts.post_status = 'tr_activated' OR wp_posts.post_status = 'private') ORDER BY wp_posts.post_date DESC LIMIT 20, 20
Note the post_type is post, not coupon. I guess this caused the problem.
Pagenavi works when doing search, if the search result return more than 1 pages, I can access all the pages, but for the main page, I can only access the first page, all pages after the first page return "Page Not Found". Pagenavi also works for store view, if a store has more 1 page, I can access all of the pages.
Please advise how to fix it.
Thanks
-David