#38208 closed defect (bug) (invalid)
Get total number of paged comments not working anymore
Reported by: | y2kand13 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6.1 |
Component: | Comments | Keywords: | |
Focuses: | Cc: |
Description
The prescribed method of assessing the amount paged comments had been working for me...
get_comment_pages_count( $comments, $per_page, $threaded);
Since upgrading, the line returns a (1) no matter how many pages of comments a post may have???
Change History (6)
#5
@
8 years ago
- Resolution set to invalid
- Status changed from new to closed
I'll admit it, I might have ignored the remark about "Also make sure that you are running the function after comments_template()". It is where its always been and it used to work perfectly every time, that location is in the comments.php after the endif for the comment loop. I tried it in the single template and it works when placed after the call for the comment template, not before, which means I'm going to have to figure another way to do what I had been doing.
Sorry for crying wolf.
Note: See
TracTickets for help on using
tickets.
Running 4.6.1 as well - cannot replicate.
Cann you provide a screenshot of your discussion settings and tell us the theme you are using?
Also make sure that you are running the function after comments_template().