Pagination not working in query_posts
|Reported by:||novakpeter||Owned by:|
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
which is perfectly right. But, it says "Nothing found" and actually shows homepage.