>
has_archive ) {
the_post_navigation(
[
'prev_text' => '' . esc_html__( 'Previous:', 'knowx' ) . '
%title',
'next_text' => '' . esc_html__( 'Next:', 'knowx' ) . '
%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();
}
}