Created
October 29, 2013 12:15
-
-
Save shemul49rmc/7213569 to your computer and use it in GitHub Desktop.
Display Previous and Next Links After Comment Form
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
/** Display Previous and Next Links After Comment Form*http://iamshemul.com/?p=2395 */ | |
add_action( 'genesis_after_comment_form', 'eo_prev_next_post_nav' ); | |
function eo_prev_next_post_nav() { | |
if ( is_single() ) { | |
echo '<div class="prev-next-navigation">'; | |
previous_post_link( '<div class="previous">Previous article: %link</div>', '%title' ); | |
next_post_link( '<div class="next">Next article: %link</div>', '%title' ); | |
echo '</div><!-- .prev-next-navigation -->'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment