How to Display Next Previous post after content in genesis

How to Display Next Previous post after content in genesis i am trying this code `add_action( ‘genesis_entry_content’, ‘custom_single_post_nav’, 12 );
function custom_single_post_nav() {

if ( ! is_singular( ‘post’ ) )
return;

echo ‘<div class=”pagination-previous alignleft”>’;
previous_post_link(‘%link’, ‘Previous Post’, FALSE);
echo ‘</div>’;

echo ‘<div class=”pagination-next alignright”>’;
next_post_link(‘%link’, ‘Next Post’, FALSE);
echo ‘</div>’;

}`

Read more here:: How to Display Next Previous post after content in genesis

Leave a Reply

Your email address will not be published. Required fields are marked *