public_html/wp-content/themes/LocalTwo/inc/template-tags.php
/**
	 * Display navigation to next/previous post when applicable.
	 */
Display navigation to next/previous post when applicable.
Display navigation to next / previous post when applicable .
function divertheme_post_nav() {
		$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
		$next     = get_adjacent_post( false, '', false );
		if ( ! $next && ! $previous ) {
			return;
		}
		?>
		<nav class="navigation post-navigation" role="navigation">
			<div class="nav-links">
				<?php
				previous_post_link( '<div class="nav-previous">%link</div>', _x( '<span class="meta-nav">&larr;</span>&nbsp;%title', 'Previous post link', 'divertheme' ) );
				next_post_link( '<div class="nav-next">%link</div>', _x( '%title&nbsp;<span class="meta-nav">&rarr;</span>', 'Next post link', 'divertheme' ) );
				?>
			</div>
			<!-- .nav-links -->
		</nav><!-- .navigation -->
		<?php
	}
function divertheme_post_nav ( ) { $ previous = ( is_attachment ( ) ) ? get_post ( get_post ( ) -> post_parent ) : get_adjacent_post ( false , '' , true ) ; $ next = get_adjacent_post ( false , '' , false ) ; if ( ! $ next && ! $ previous ) { return ; } ?> <nav class="navigation post-navigation" role="navigation">
			<div class="nav-links">
				 <?php previous_post_link ( '<div class="nav-previous">%link</div>' , _x ( '<span class="meta-nav">&larr;</span>&nbsp;%title' , 'Previous post link' , 'divertheme' ) ) ; next_post_link ( '<div class="nav-next">%link</div>' , _x ( '%title&nbsp;<span class="meta-nav">&rarr;</span>' , 'Next post link' , 'divertheme' ) ) ; ?> </div>
			<!-- .nav-links -->
		</nav><!-- .navigation -->
		 <?php }
Display navigation to next/previous post when applicable.
Display navigation to next / previous post when applicable .
// Don't print empty markup if there's nowhere to navigate.