'; $prev_thumb = $next_thumb = $prev_arrow = $next_arrow = ''; $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( is_attachment() && 'attachment' == $previous->post_type ) { return; } if ( $previous && has_post_thumbnail( $previous->ID ) ) { $prev_arrow = ''.blog_tale_get_theme_svg('chevron-double-left').''; $prev_thumb = ''; } if ( $next && has_post_thumbnail( $next->ID ) ) { $next_arrow = ''.blog_tale_get_theme_svg('chevron-double-right').''; $next_thumb = ''; } the_post_navigation(array( 'next_text' => $next_thumb.'', 'prev_text' => $prev_thumb.'', )); echo ''; }else{ echo '
'; the_post_navigation( array( 'next_text' => '%title'.blog_tale_get_theme_svg('chevron-double-right').'', 'prev_text' => ''.blog_tale_get_theme_svg('chevron-double-left').'%title', ) ); echo '
'; } if ( 'post' === get_post_type() ) : /*Show related posts*/ $show_related_posts = blog_tale_get_option('show_related_posts'); if($show_related_posts){ blog_tale_related_posts(); } $show_author_posts = blog_tale_get_option('show_author_posts'); if($show_author_posts){ blog_tale_author_posts(); } /**/ endif; // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif;