add_action( 'genesis_after_entry', 'custom_adjacent_entry_nav' );
/**
* Displays links to previous and next entry.
*
* @since 2.3.0
*
* @return void Return early if not singular or post type doesn't support `genesis-adjacent-entry-nav`.
*/
function custom_adjacent_entry_nav() {
if ( ! is_singular() ) {
return;
}
genesis_markup( array(
'open' => '<div>',
'context' => 'adjacent-entry-pagination',
) );
echo '<div class="pagination-previous alignleft">';
previous_post_link( '%link', '« Previous Post: %title' );
echo '</div>';
echo '<div class="pagination-next alignright">';
next_post_link( '%link', 'Next Post: %title »' );
echo '</div>';
genesis_markup( array(
'close' => '</div>',
'context' => 'adjacent-entry-pagination',
) );
}