paginate_links and query vars
I have using the WordPress paginate_links() to build a paginator on a custom archive template for a custom post type. My site uses permalinks: <?php echo paginate_links(array( ‘base’ => get_pagenum_link(1) . ‘%_%’, ‘current’ => max(1, get_query_var(‘paged’)), ‘format’ => ‘page/%#%’, ‘total’ => $wp_query->max_num_pages, )); ?> This works fine until I try to add query string vars … Read more