Thread Starter
jeroen
(@jeroenpanjer)
Thank you for the quick fix! Amazing support!
I was struggling with pagination for hours as well.. This is what I did that worked:
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ?>
<?php $offset = ( 5 * $paged ) - 5; ?>
<?php $args=array(‘paged’=>$paged, 'posts_per_page'=>5, 'post_type'=>'YOURPOSTTYPE', 'offset' => $offset); ?>
<?php query_posts($args); ?>
I was struggling with pagination for hours as well.. This is what I did that worked:
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ?>
<?php $offset = ( 5 * $paged ) - 5; ?>
<?php $args=array(‘paged’=>$paged, 'posts_per_page'=>5, 'post_type'=>'YOURPOSTTYPE', 'offset' => $offset); ?>
<?php query_posts($args); ?>