Skip to content

Instantly share code, notes, and snippets.

@ebinnion
Created April 16, 2014 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebinnion/10930112 to your computer and use it in GitHub Desktop.
Save ebinnion/10930112 to your computer and use it in GitHub Desktop.
<?php
function foundation_pagination() {
global $wp_query;
$big = 999999999;
$links = paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'prev_next' => true,
'prev_text' => '&laquo;',
'next_text' => '&raquo;',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages,
'type' => 'list'
)
);
$pagination = str_replace('page-numbers','pagination',$links);
echo $pagination;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment