[Plugin: WP-PageNavi] Page Navigation error on CATEGORY and SEARCH
-
My WP is on the root of my domain, I’m using a custom post type and I followed all hierarchy of wp themes, but the Pagenavi isn’t working ok with CATEGORY.
https://www.domain.com/CATEGORY BASE NAME/2006/ – Works ok, all the posts appears with the pagination, but when I click to move to another page, for example: https://www.domain.com/CATEGORY BASE NAME/2006/page/2/ , It returns 404!
I’ve alread tried to change the permalinks back to default and save but the problem remains.
CATEGORY.php
$CatName = single_cat_title(”,false);
$cat_id=get_cat_id($CatName);
$paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;
$count=1; query_posts(‘cat=’.$cat_id.’&post_type=eventos&paged=’.$paged.’&post_per_page=10′);?>PS: Pagenavi is working perfect in with taxonomy, but I have similar problems with the SEARCH REASULTS: https://www.domain.com/page/3/?s=keyword
Any ideas what’s wrong? Thanks!
- The topic ‘[Plugin: WP-PageNavi] Page Navigation error on CATEGORY and SEARCH’ is closed to new replies.