>
has_archive ) { // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( $next || $previous ) { ?> '
' . esc_html__( 'Previous:', 'ampy' ) . '
%title', // 'next_text' => '
' . esc_html__( 'Next:', 'ampy' ) . '
%title', // ) // ); } // Show comments only when the post type supports it and when comments are open or at least one comment exists. if ( post_type_supports( get_post_type(), 'comments' ) && ( comments_open() || get_comments_number() ) ) { comments_template(); } }