Created
April 11, 2018 06:13
-
-
Save MrJSdev/6965e89c5cb9d92351710e41bc149de7 to your computer and use it in GitHub Desktop.
This is the code for the guide: http://extracatchy.net/add-next-previous-post-button-genesis-theme/
This file contains 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
<?php | |
//Do not copy the above php tag. | |
function ec_custom_post_navigation() | |
{ | |
?> | |
<div class="prev_next"> | |
<div class="nav_left"> | |
<span class="prev">Previous Post</span> <?php previous_post_link('%link', '%title'); ?> | |
</div class="nav_right"> | |
<div> | |
<span class="next">Next Post</span> <?php next_post_link('%link', '%title'); ?> | |
</div> | |
</div> | |
<?php | |
} | |
add_action('genesis_after_entry', 'ec_custom_post_navigation', 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment