You can use the function paginate_links() for any pagination.
For your specific case:
$total = $wpdb->get_var("
SELECT COUNT(comment_ID)
FROM $wpdb->comments
WHERE user_id = $thisauthor->ID
AND comment_post_id = ID
AND comment_approved = 1
");
$comments_per_page = 100;
$page = isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage'] ) : 1;
echo paginate_links( array(
'base' => add_query_arg( 'cpage', '%#%' ),
'format' => '',
'prev_text' => __('«'),
'next_text' => __('»'),
'total' => ceil($total / $comments_per_page),
'current' => $page
));
Related Posts:
- Reverse comment pagination numbers
- Is there any way to override “break comments into pages” and “close comments for old posts” on certain posts, but not on others?
- How to no follow the paginated comments
- Comments Pagination as an unordered list
- How to add pagination to comments?
- Comment pagination – How to show determined number of comments on the first page?
- changing comment-page-# to something like review-page-#
- How do you turn on comments for only the last page of a paginated post?
- Redirect to page 2 after comment
- Set noindex page-comment from Pages 2, 3 and More?
- Pagination Comments Doesn’t Show
- PAIN. Comments Pagination
- assumed as comment line
- Comment Pagination
- get_query_var(‘paged’) for WP_Comment_Query always return 1 when using paginate_comments_links()
- Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order
- What is wrong with this? [closed]
- Comments pagination on author page
- Comment submission & navigation redirects to default language
- If paginated comments don’t span to a second page, how do I hide the div wrapper?
- WordPress comment pagination : newest comments on first page
- Pagination comments
- Remove “#comments” from comments pagination url
- Why do I get comment spam even with Akismet and Captcha?
- What tools are available for managing/writing to WordPress? [closed]
- How to change “You must be logged in to post a comment.”
- comment_post_ID 0 (cannot remove from dashboard)
- How to change the email notification recipient (user) for new comments?
- Change Comment Author Display Name
- Threaded comments – deleting parent comment leads to orphan comments
- How to remove commenters ability to add hyperlinks to comments?
- How can I edit the email sent when a new comment is received?
- How to remove or replace the log-in link for comment replies?
- Exclude internal links from comment moderation?
- Add Comment Custom Field
- Remove link preview in discussion dashboard
- Can’t add default comments to custom post type
- Does Akismet plugin expose any hooks, functions, class that can work with custom code?
- Comments Feed & Custom Post Statuses
- Multiple Comment Forms in a single page [closed]
- Displaying comments with a walker: how to distinguish between parent and child comments
- Count parent comments & replies separately?
- How to modify comments form using comment_form()?
- Capability for allowing user to post own comments without moderation
- Comment count wrong with orphaned comments
- How would I count the number of times a comment meta field’s value is in a post’s entire comments?
- Get comment content by comment ID
- stackexchange-like submit comment window
- Retrieve comments from current post using SQL
- Display recent comments with gravatar and excerpts?
- Limit user to one comment
- Is comment metadata included in the export file?
- Get a List of All Commenters on the Current Post
- Display the number of unseen comments on a page since the user last visit
- Removing the limit on the number of nested comments
- How to call my custom WordPress Comment form without getting the comments?
- How to moderate (manually approve) comments of a specific (registered) User
- How would I add the comment count to this sub-pages of current page snippet
- How can I test why the comment hook is not working?
- How to limit comment author to one comment per post
- How do i remove “Website” field from WordPress comments
- WordPress comments work locally only?
- comment reply by email
- “Discussion” checkboxes unchecked by default on pages? [duplicate]
- How to disable or hide WordPress.com as a social media login option for Jetpack Comments [closed]
- How to limit comment indentations to one level?
- Anonymize comments after one year
- Minimum allowed comment length only on a specific page
- How can get comment id from comment link?
- How can I count only guests comments?
- Pending Comments
- Anonymous spam comments when only registered users can comment
- Limit iframe output in comment-meta commentmetadata
- Crossposting from WP to Blogger with comments
- reply comment below the comment box without reload page
- Comment area visible but comments not being saved
- Force to show all fields in comment forms to the logged-in users
- Write html code in comments
- How to post one comment for all the translated posts
- How do i add comment fields in my page in WordPress
- twenty seventeen theme: comments UI not visible
- How do I alter the comments form in several different ways?
- comment_moderation_subject is not working for me
- Adding restrictions to open comments
- Custom Comment Form Error Messages
- Disqus comments only show up on newest post
- Comment notification not working
- How to maintain changes to comment-template.php
- wp_insert_user email confirmation
- Comments appear in wrong posts
- use a page to render 1 post and include comments FOR THE POST
- Can I use wordpress comments system to build a user review system within my website?
- Return comments_link() instead of echoing it
- just show the field comment by clicking button
- Incude comments in search
- Show count comments under the title
- Numbering only parent comments
- How to show recent comments on WordPress homepage with post title?
- Merge comments from Facebook with WP comments [closed]
- How to hide and disable URL and email fields from comments?