I'm looking for a succinct method of making
double back to the beginning once it hits the last post.
Currently, it stops once it hits the final post.
Here are a few lines of code from the codex
for context that are similar to what I'm using:
<?php $next_post = get_next_post(); if (!empty( $next_post )): ?> <a href="<?php echo get_permalink( $next_post->ID ); ?>"> <?php echo $next_post->post_title; ?> </a> <?php endif; ?>
Thanks in advance for your suggestions.