* @license GPL-2.0+ * @link https://aumcreate.com * @copyright 2025 AumCreate * @since 1.0.0 */ // Determine whether to enable comment pagination $page_comments_enabled = get_option('page_comments'); // Default display comment page settings: 'newest' or 'older' $default_comments_page = get_option('default_comments_page', 'newest'); // Calculate the initial page number $initial_page = 1; if ($page_comments_enabled) { $total_top_comments = get_comments(array( 'post_id' => get_the_ID(), 'status' => 'approve', 'parent' => 0, 'count' => true, )); $comments_per_page = get_option('comments_per_page'); $total_pages = ceil($total_top_comments / $comments_per_page); if ($default_comments_page === 'newest') { $initial_page = $total_pages; } } ?>
' . __('Your email address will not be made public. Required fields have been marked with *', 'aumcreate') . '
', 'class_container' => 'comment-respond aum-container', 'submit_field' => '
'custom_comment_callback', 'style' => 'ol', 'short_ping' => true, ]); ?>
1) : the_comments_pagination([ 'prev_text' => esc_html__('Older comments', 'aumcreate'), 'next_text' => esc_html__('Newer comments', 'aumcreate'), ]); endif; else : ?>