id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 20032,Pagination not working in query_posts,novakpeter,,"I have this really simple code in my themes category.php before the loop: {{{ $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array('post_type'=>array('ai1ec_event'),'paged' => $page)); }}} (btw, ai1ec_event are posts from All in One Events Calendar plugin). Posts (type: ai1ec_event) are in the loop, that is OK. Although, pagination doesnt work. There is the rendered next_posts_link, after clicking on it, it goes to URL {{{ http://www.domain.com/categories/news/events/page/2/ }}} which is perfectly right. But, it says ""Nothing found"" and actually shows homepage.",defect (bug),closed,normal,,"Posts, Post Types",3.3.1,normal,invalid,,,