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?
- Getting paginate_links() ‘end_size’ to display none
- 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
- I can’t fetch query parameters ($_GET parameters) with get_query_var
- Facebook Comment Count
- 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?
- Edit format of Paginate_Links()
- get understrap pagination to work with custom query
- Notify WordPress Site I Have Linked To Them
- Customized title tag for each page in pagination?
- Replace comment avatars and links at the same time
- Adding ads code between comments
- Sorting Posts | Alphabetical Order
- How do I fetch all comments per post via WP REST API?
- comments_number display outside specified span
- Trying to implement Ajax comments in WordPress, getting WP error
- How can I properly control the numbers and dots that appear in pagination?
- “comments.php” not available after edit in WP administration
- 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
- Sending data from custom inputs in WordPress comment form in the admin notification email
- 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?
- How to implement a rating and review system for WordPress custom posts?
- Ajax load more button for comments wordpress
- 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
- 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
- How to create pagination for users list using custom array?
- WordPress comment submit button substitutes/options
- Pagination on Custom Post
- Does anyone know all parameters of get_comments()
- 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
- the_posts_pagination() not working in wpquery
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Fetching Initials of the Commentator in the WordPress Website
- How can I include the user id inside of a shortcode php output?
- Restrict characters in comment section
- Custom pagination (Previous / Next)
- Conditionally load class in the comment section of the post page
- How to get comment_ID by post_ID in wordpress
- pagination broken – clicking next displays “page not found”
- Comment_author_url doing nothing
- Fatal error: Cannot redeclare comment_theme()
- Pagination Not Working (pages duplicating content)
- Pagination in single.php
- Pagination at category doesnt work with same name of page
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- Show all people who commented on all posts by an author
- Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked
- static page pagination not working
- Trying to get pagination working on WP_Query() post grid
- Fetch commens from a specific post
- AJAX numerical pagination problem in TwentyFifteen-child theme
- Closing Comments conditionally in comments.php
- Pagination 404 error(I have refreshed the permalinks and tried several previous options)
- Pagination – Previous link is not show and Next link sticks at page 2
- How can I get my pagination loop to display the correct number of total pages?
- WordPress Single Post Pagination Numbered and Navigational
- Add a leading zero to pagination
- How can I output the slug of a comment author?
- How can I enqueue comment-reply script only on certain page?
- rewrite_rule – working fine but broken for pagination
- How to fix blank pagination links?
- WordPress pagination broken on blog page, working for search results page
- WordPress – show number of comments for each post in widget
- Pagination on Custom Loop
- How does add_action ‘comment_post’ work?
- Custom action on comment post
- WordPress most commented posts of last X days
- How do I call comments_template(); from a plugin file?
- How to add pagination for wordpress home page
- Pagination 404 on my index.php
- paginate_links() returns NULL instead of the pagination links, but pagination is actually happening
- Blog Posts not sorted and pagination not adjusted after filtering some category
- How to Set Page Pagination Using Ajax JQuery – WordPress
- Why do I get a 404 error on my custom post type archive pagination?