I'm working with the paginate_links() function and I'm trying to create a pagination in this kind of style;
< 3 4 5 6 7 >
Logically I thought it would be simple by setting end_size to 0 and mid_size to 2.
I have done this but my code is outputting as this;
< 1 ... 3 4 5 6 7 ... 9 >
To me, this is showing the end_size as 1, even though I have it set to 0 (unless I'm misunderstanding what the option does).
My current paginate links function looks like this;
$paginationArgs = array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $loop->max_num_pages, 'end_size' => 0, 'mid_size' => 1, 'prev_next' => TRUE, 'prev_text' => '<', 'next_text' => '>', 'type' => 'list', 'add_args' => FALSE, 'add_fragment' => '' ) $pagination = paginate_links($paginationArgs);
Does anyone have any advice/answers?