Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="paginate">
- <?php
- $total = $wp_query->max_num_pages;
- $paged = !$paged ? 1 : $paged;
- $args = array('base' => add_query_arg('paged', '%#%'),
- 'format' => '', 'total' => $total, 'current' => $paged, 'echo' => false, 'end_size' => 5);
- ?>
- <div class="navigation">
- <?php echo paginate_links($args); ?>
- </div>
- </div>
- reference: http://codex.wordpress.org/Function_Reference/paginate_links
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement