I made a simple page navigation for Wordpress, and I can’t find a way to change the behavior next_posts_link()and previous_posts_link()so that the button is always visible, no matter which page is displayed.
Here is the menu in different states:



I understand that you should not expect the Previous / Next buttons on the first / last page from this Wordpress function, however I need to rewrite this behavior so that the crossed out text of the previous page / next page is displayed on the first / last page, respectively.
Any help would be greatly appreciated for how I can achieve this. Thanks you
Here is the code:
<?php
function pagination_nav() {
global $wp_query;
$total_pages = $wp_query->max_num_pages;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
?>
<nav class="pagination" role="navigation">
<div class="nav-previous">← <?php previous_posts_link( 'Previous Page ' ); ?></div>
<div class="nav-position">Page <?php echo $paged ?> of <?php echo $total_pages ?></div>
<div class="nav-next"><?php next_posts_link( 'Next Page' ); ?> →</div>
</nav>
<?php } ?>