Paginate with get_option excluding child-categories
-
Hi all,
i have a simlar problem as in this post, but using the following query nevertheless results the same effect: Whatever paginated link (page2, page3, …) will show only the first page.$catChilds_IDs = array(); $cater = get_categories("child_of=".$cat_check_id. "&title_li=&hide_empty=true"); foreach((array) $cater as $cat){ array_unshift($catChilds_IDs,$cat->cat_ID); } if(count($catChilds_IDs) > 0){ $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array('category__not_in' => $catChilds_IDs),'orderby=date&showposts='.get_option('posts_per_page').'&paged=' . $paged); }
Any help?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Paginate with get_option excluding child-categories’ is closed to new replies.