functions.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 vogue_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">
		<span class="screen-reader-text"><?php _e( 'Post navigation', 'vogue' ); ?></span>
		<div class="nav-links">
			<?php
			$slider_categories 	= get_theme_mod( 'vogue-blog-cats' );
			$slider_type 		= get_theme_mod( 'vogue-slider-type', customizer_library_get_default( 'vogue-slider-type' ) );
			$exclude_categories = '';
			if ( $slider_type == 'vogue-slider-default' && $slider_categories ) {
				$exclude_categories = ( '-' == $slider_categories[0] ) ? substr( get_theme_mod( 'vogue-blog-cats' ), 1 ) : get_theme_mod( 'vogue-blog-cats' );;
			}
			previous_post_link( '<div class="nav-previous">%link</div>', _x( '%title', 'Previous post link', 'vogue' ), false, $exclude_categories );
			next_post_link(     '<div class="nav-next">%link</div>',     _x( '%title', 'Next post link',     'vogue' ), false, $exclude_categories );
			?>
		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php
}
function vogue_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">
		<span class="screen-reader-text"> <?php _e ( 'Post navigation' , 'vogue' ) ; ?> </span>
		<div class="nav-links">
			 <?php $ slider_categories = get_theme_mod ( 'vogue-blog-cats' ) ; $ slider_type = get_theme_mod ( 'vogue-slider-type' , customizer_library_get_default ( 'vogue-slider-type' ) ) ; $ exclude_categories = '' ; if ( $ slider_type == 'vogue-slider-default' && $ slider_categories ) { $ exclude_categories = ( '-' == $ slider_categories [ 0 ] ) ? substr ( get_theme_mod ( 'vogue-blog-cats' ) , 1 ) : get_theme_mod ( 'vogue-blog-cats' ) ; ; } previous_post_link ( '<div class="nav-previous">%link</div>' , _x ( '%title' , 'Previous post link' , 'vogue' ) , false , $ exclude_categories ) ; next_post_link ( '<div class="nav-next">%link</div>' , _x ( '%title' , 'Next post link' , 'vogue' ) , false , $ exclude_categories ) ; ?> </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.