Show next / previous text (button) all the time

Question

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.

Thank you,

0
pulla 7 years 2016-06-29T21:16:51-05:00 0 Answers 94 views 0

Leave an answer

Browse
Browse