biofriction-wp-theme/biofriction-theme/template-parts/navigation-indexednav.php

14 lines
500 B
PHP
Raw Normal View History

2021-02-18 15:27:46 +01:00
<?php
// Display navigation to next previous pages when applicable
if ( function_exists( 'foundationpress_pagination' ) ) :
foundationpress_pagination();
elseif ( is_paged() ) :
?>
<nav id="post-nav" class="post-nav button">
<div class="post-previous"><?php next_posts_link( __( '&larr; Older posts', 'foundationpress' ) ); ?></div>
<div class="post-next"><?php previous_posts_link( __( 'Newer posts &rarr;', 'foundationpress' ) ); ?></div>
</nav>
<?php
endif;
?>