Skip to content

Instantly share code, notes, and snippets.

@redrambles
Last active January 6, 2022 20:16
Show Gist options
  • Save redrambles/06cb500c81411fb631a10d892fdb3cb6 to your computer and use it in GitHub Desktop.
Save redrambles/06cb500c81411fb631a10d892fdb3cb6 to your computer and use it in GitHub Desktop.
<nav id="navigation" class="container">
<div class="left"><?php next_posts_link('&larr; <span>Older Posts</span>'); ?></div>
<div class="pagination">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
echo 'Page '.$paged.' of '.$wp_query->max_num_pages;
?>
</div>
<div class="right"><?php previous_posts_link('<span>Newer Posts</span> &rarr;'); ?></div>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment