* @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; } } ?>

    '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 : ?>
__('Post a comment', 'aumcreate'), /* translators: %s: the display name of the person being replied to. */ 'title_reply_to' => __('Reply to %s', 'aumcreate'), 'cancel_reply_link' => __('Cancel reply', 'aumcreate'), 'label_submit' => __('Post a comment', 'aumcreate'), 'comment_notes_before' => '', 'comment_notes_after' => '

' . __('Your email address will not be made public. Required fields have been marked with *', 'aumcreate') . '

', 'class_container' => 'comment-respond aum-container', 'submit_field' => '
%1$s %2$s
', 'class_submit' => 'submit aum-comment-submit' )); ?>