Try this. Go to Plugins > Add New, install Code Snippets > Activate. Go to Snippets > Add New, name the snippet any name you’d like, insert in the snippet body:
if ( ! function_exists( 'siteorigin_unwind_the_post_navigation' ) ) :
/**
* Display navigation to next/previous post when applicable.
*/
function siteorigin_unwind_the_post_navigation() {
// Don't print empty markup if there's nowhere to navigate.
$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( true, '', true );
$next = get_adjacent_post( true, '', false );
if ( ! $next && ! $previous ) {
return;
}
?>
<nav class="navigation post-navigation" role="navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'siteorigin-unwind' ); ?></h2>
<div class="nav-links">
<div class="nav-previous">
<?php previous_post_link ( '%link', '<span class="sub-title"><span>←</span> ' . __( 'Previous Post', 'siteorigin-unwind' ) . '</span> <div>%title</div>' ); ?>
</div>
<div class="nav-next">
<?php next_post_link( '%link', '<span class="sub-title">' . __( 'Next Post', 'siteorigin-unwind' ) . ' <span>→</span></span> <div>%title</div>' ); ?>
</div>
</div><!-- .nav-links -->
</nav><!-- .navigation -->
<?php
}
endif;
Opt to run the snippet on the site front end.
Click Save Changes and Activate, not just Save Changes.
Does that help? Be sure to save and activate.