Skip to content

Instantly share code, notes, and snippets.

@topleague
Created September 14, 2019 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save topleague/ee8248b298620eff6c1a99a4efce5912 to your computer and use it in GitHub Desktop.
Save topleague/ee8248b298620eff6c1a99a4efce5912 to your computer and use it in GitHub Desktop.
display Next Post Links below the Comments Section.
//* Next Post Links below Commments Section
function leaguewp_prev_next_post_nav() {
if ( is_singular( 'post' ) ) {
echo '<div class="prev-next-navigation">';
previous_post_link( '<div class="previous"><span>Next Post</span><br> %link</div>', '%title' );
echo '</div>';
}
}
add_action( 'genesis_after_comments', 'leaguewp_prev_next_post_nav', 9 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment