Show next / previous text (button) all the time
As you see this pagination. there is no “pre” button or text. because there is no previous posts. ( http://prntscr.com/bmuui2 )
However I want to show the buttons (previous / next ) even if there is no (previous / next ) posts.
Because of design balance.
I want to make to show like this all the time. ( http://prntscr.com/bmutmv )
I use this code and refer this codex ( https://codex.wordpress.org/Function_Reference/paginate_links )
<?php global $wp_query; $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') ), 'total' => $wp_query->max_num_pages ) ); ?>
I have tried to add more array values. but it seems no way to make it.
Leave an answer