I created a page for my custom post types. The code can be viewed on Snippi: http://snippi.com/s/e8852rx
I'm trying to insert paginate_links, but for whatever reason it's simply not showing up. Here is the paginate_links code (this code works on normal archive.php files):
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
'base' => str_replace( $big, '%#%', get_pagenum_link( $big ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
?>
WP_Query
object, but referencing the mainWP_Query
object in your call to paginate links. Change$wp_query->max_num_pages
to$loop->max_num_pages
and see if that helps.format
in thepaginate_links
call, try changingpaged
topage