Pagination
-
I have a total 23 custom post type..
Currently my pagination is
1 2 3 >
But
I want to display in this format like
1-10 of 23My Pagination code is
<div class="pagin"> <span class="paginat"> <?php $big = 999999999; // need an unlikely integer echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'next_text' => __('>'), 'prev_text' => __('<'), 'total' => $loop->max_num_pages ) ); ?> </span> </div>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
- The topic ‘Pagination’ is closed to new replies.