Last active
September 6, 2016 15:55
-
-
Save gemmadlou/c0c6bd32c12af2e84b335e1380b0b9de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Get Previous Post --> | |
<?php | |
$prev_post = get_previous_post(); | |
if (!empty( $prev_post )): ?> | |
<a href="<?php echo get_the_permalink($prev_post->ID); ?>"> | |
<span class="c-button c-button-full-width read-more c-button--summer-orange-light">Previous</span> | |
</a> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment