Guest User

Untitled

a guest
Feb 18th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // Goes after the endwhile before reset post data
  2.  
  3. <div class="pagination">
  4. <?php
  5. echo paginate_links( array(
  6. 'base' => str_replace( 999999999, '%#%', esc_url( get_pagenum_link( 999999999 ) ) ),
  7. 'total' => $query->max_num_pages,
  8. 'current' => max( 1, get_query_var( 'paged' ) ),
  9. 'format' => '?paged=%#%',
  10. 'show_all' => false,
  11. 'type' => 'plain',
  12. 'end_size' => 2,
  13. 'mid_size' => 1,
  14. 'prev_next' => true,
  15. 'prev_text' => sprintf( '<i></i> %1$s', __( 'Newer Posts', 'text-domain' ) ),
  16. 'next_text' => sprintf( '%1$s <i></i>', __( 'Older Posts', 'text-domain' ) ),
  17. 'add_args' => false,
  18. 'add_fragment' => '',
  19. ) );
  20. ?>
  21. </div>
Add Comment
Please, Sign In to add comment