The number for the first page is always 1
. The number of maximum pages can be set to $max_page
by calling get_comment_pages_count()
:
$max_page = get_comment_pages_count();
Probably this information helps on how to build links on top of that, which depends a bit on the style of your theme. For building links, I could not find any suitable function in the Worpdress API so far, the most promising seems paginate_links()
to me.
Related Posts:
- How to check if comments are paginated?
- Modify previous and next text from pagination links
- Getting paginate_links() ‘end_size’ to display none
- WordPress AJAX Pagination with query_posts
- How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table
- Display user’s total comment count outside The Loop
- Static Frontpage Pagination – Custom loop
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Facebook Comment Count
- Getting the comment number relative to all the post’s comments
- How to output a permanently delete comment link?
- Rewriting search and pagination base
- count number of user comments with a specific comment meta value
- Change comments form title on a page by page basis
- WooCommerce – Customer Order History Pagination
- Changing Link Attributes for Wp_Link_Pages
- Custom Loop Pagination on WordPress
- How do I make wordpress comment fields required?
- How do I create comment-reply-button using element not
- Edit format of Paginate_Links()
- Pagenavi pagination via wp-query in functions.php showing same content for each page
- get understrap pagination to work with custom query
- Notify WordPress Site I Have Linked To Them
- Customized title tag for each page in pagination?
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Replace comment avatars and links at the same time
- Automatically generate Post/Page from searched Database item?
- WordPress get pagination on wpdb get_results
- Adding ads code between comments
- Sorting Posts | Alphabetical Order
- Getting rid of role=”navigation” in the Home Page Pagination
- Page navigation not showing even tho it should
- How do I fetch all comments per post via WP REST API?
- How to get the Page Number of the Current Page in Single Post Pagination
- How can I add pagination and how can I change thumbnail size?
- comments_number display outside specified span
- Trying to implement Ajax comments in WordPress, getting WP error
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- Show comments menu in dashboard only if the site has comment
- WP-PageNavi is showing the first page only
- How can I properly control the numbers and dots that appear in pagination?
- “comments.php” not available after edit in WP administration
- Increase returned number/pages on pagination
- Adding nofollow to a PHP generated Nav
- User’s total comment count excluding comments on their own posts
- Using loop pagination on single.php
- WordPress 3.2 query_posts and pagination, permalinks issue
- Unreadable pagination
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Show wp_die if url form comment not emply
- Why does my callback function not work with this custom filter hook?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- How to show all pages in blog navigation?
- get_terms pagination
- How to implement a rating and review system for WordPress custom posts?
- Ajax load more button for comments wordpress
- Search not showing all results
- edit_comment_link is not showing for comment author
- Limit 1 global comment per minute
- Create Page To Count Comments For Each Post In WordPress Site
- comments sorting incorrectly across multiple pages
- Commenting out unwated CSS/scripts in HTML with PHP
- Pagination in plugin’s backend
- wp-comments-post.php file returns a blank page
- php function to display commenter username or login
- Genesis framework comments broken?
- check if comment submitted was successful
- PHP code to use on next & previouspage links
- Pagination for custom shop loop woocommerce
- Alter required message using comment form api
- Get post id within comments loop
- How to get all author posts outside of author templates
- How to create pagination for users list using custom array?
- Custom Pagination is Broken
- WordPress comment submit button substitutes/options
- How to list commenters and days since last commented
- Pagination on Custom Post
- How to add text to the start of all comments?
- Does anyone know all parameters of get_comments()
- Next post link on a bootstrap button
- Appended comments but they show up above the content instead of below
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- Prev/Next Links Broken on Static Front Page Pagination
- get comment data using comment id
- Removing the comment function within wordpress
- wp_delete_comment takes two tries to delete – then deletes all comments
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- the_posts_pagination() not working in wpquery
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Generating rel=”prev” and rel=”next” using filters
- Need help with Code Correction php+wordpress
- Custom query vars filters problem with pagination
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Fetching Initials of the Commentator in the WordPress Website
- Need help with pagination
- get_comments_number() returns 0
- How can I include the user id inside of a shortcode php output?
- Restrict characters in comment section