Hello,
I am working on displaying a “Previous” and “Next” link at the end of each post.
http://farmonplate.com/2013/10/17/whole-roasted-snapper/
My problem is, I have to use the genesis_before_comments to show this. I would like to do this instead by using genesis_after_post_content. But when I do this, the function doesn’t fire. What gives?
My current code is, which works fine:
add_action( ‘genesis_before_comments’, ‘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 Recipe: %link</div>’, ‘%title’ );
next_post_link( ‘<div class=”next”>Next Recipe: %link</div>’, ‘%title’ );
echo ‘</div><!– .prev-next-navigation –>’;
}
}