#38208 closed defect (bug) (invalid)
Get total number of paged comments not working anymore
| Reported by: | y2kand13 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Comments | Version: | 4.6.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
10 years ago
- Resolution → invalid
- Status new → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

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().