I read articles and codex about pagination but it usually seems to work in the Loop.
For some style reasons, I need to create a pagination block outside the main loop but for the main loop… Implying existence of some query_posts loops between the Loop and the pagination.
I tried something like that :
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array( 'post_type' => 'post', 'paged' => $paged, 'posts_per_page' => 10 'cat' => '1,2,3' ));
But it returns nothing.
Thanks for tips !
[ Please do not bump, that’s not permitted here. ]
- The topic ‘Pagination outside the Loop’ is closed to new replies.