I’m sure the problem is in this line of code, since it ALWAYS return
1:$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
Yes, that’s correct.
And to retrieve the page number of the current comments page, where the URL contains the /comment-page-<number>
, use get_query_var( 'cpage' )
and not get_query_var( 'paged' )
, i.e. the query var name is cpage
and not paged
.
Related Posts:
- Paginate result set from $wpdb->get_results()
- 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
- 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
- Add option to disable comments on a per posts basis?
- What should I do to make generated avatars different for anonymous comments?
- Check If comment author is registered
- How do I set up real anonymous posting in bbpress forums? [closed]
- How do I turn off wordpress comments ability to capture a users ip address?
- Success message in comment form
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Is there a hook for comment author link?
- Change the HTML output of comments
- How to Block Access to Standard Login Flow and Comment Flow
- Upload images with comment
- Prevent Contributor to show comment list
- where to modify get_comment_author_link()?
- Change language of comments template
- Why Allow Script Commands in Comments?
- How to enable comments options?
- WordPress comment count to include attachment comments
- Remove “Comments are closed” Notice from Custom Post Type template
- Comment form problem with comment_author_url and HTML5 input placeholders
- Pings and replies
- Add “last” and “first” to WordPress Comment Pagination Links
- Comment_Reply_Link Not Showing?
- Cannot get local avatars to show [closed]
- Log in link not showing, Comment Issue
- WordPress comments on users profile
- wordpress threaded comments – customize nested ul / how child ul is displayd
- How to make a secure blog that is completely private?
- identify and delete spam comments from 3000 pending comments
- Hide comments column in WordPress backend
- How unrequire comment text in wordpress post
- Auto delete comment if Contains
- API Hook for After Commenting (for sharing on Facebook)
- Make WordPress process admin group comments using $allowedtags
- Can comments by a logged-in user be displayed at the top?
- Placed on + only date (not time)
- Loading Comments From a Class?
- Incorrect redirection after commenting on custom type
- have_comments not true for logged out visitors?
- WordPress for questions and responses website
- How to Add text to the start of all comment?
- How to get comments other than using wp_list_comments?
- How many members have made comments approved for an article?
- How to get a value from comment meta
- reCaptcha doesnt appear in comment (manual or plugin)
- Add a Comment on/off option in Screen Options for Comments?
- Comment System showing different type of IP
- Only Allow post author and “Premium” Role user to comment
- Exclude the word comment from being referenced
- How to open up comments to all visitors
- What is the earliest hook comment meta can be saved?
- Get Comment Author ID on the fly while posting
- Is this a wordpress bug? get_comment_link auto shoots when user visits his dashboard
- Comment as post – understanding wp_list_comments
- Comments and pingbacks issues
- Cannot unapprove a WordPress comment
- How to load new posts from wordpress db into wordpress homepage without refreshing the site?
- how show attachment image in comments query
- Who approved a comment, to show up in dashboard
- comments.php remove date/time’s #hyperlink
- comment just attachment .. reply just text … can I do that?
- Custom pagination permalink structure Product page
- No comment Section but still got a Comment
- How to prevent users/authors from seing IP/email of new commentators?
- Why are my threaded comments not quite working? [closed]
- $post->comment_status always returns ‘closed’
- edit comments in front end
- How to replace anonymous comment form with a registration form on wordpress?
- How to get the 5 most recent comments and each comment 5 most recent replies (children)
- Redirect first time comments
- comment files and s
- How to hold all comments for moderation, including author’s comments on own post
- Comment forum to display under the comment you’re replying too
- Recent comments per tagged post?
- Subscribe to a post’s comments without posting a comment yourself
- WordPress error when sending comment
- Why default comment fields don’t show up?
- TinyMCE in comment reply form showing toolbar but can’t edit reply