Possible Duplicate:
Pagination not working with custom loop
Any ideas why this paged wp_query
doesn't seem to want to work?
I've tried replacing the pt_pagination
function with the default next/prev posts links and that didn't work either...
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array (
'post_type' => 'pt-portfolio',
'paged' => $paged,
);
$pt_portfolio_loop = new WP_Query($args);
while($pt_portfolio_loop->have_posts()) : $pt_portfolio_loop->the_post();
?>
<?php
$cols = of_get_option('pt_portfolio_layout');
get_template_part('portfolio', $cols);
?>
<?php endwhile; ?>
<?php pt_pagination(); ?>
<?php wp_reset_postdata();?>