Hi everyone,
Does anyone know how i can get a pages / posts total amount of comments to display the number of comments on the post?
Thanks in advance
Hi everyone,
Does anyone know how i can get a pages / posts total amount of comments to display the number of comments on the post?
Thanks in advance
Add-ons->Manage add-ons->Comments and reviews->Pages
I need to display the count of how many comments there are for a post like "Comments (2)" for example, i tried using this but always shows 0
{$subpage.discussion.posts|count}
And if you did:
Does it show that you have array elements in $subpage.discussion.posts?
Please clarify where do you want to display the amount of comments?
Please clarify where do you want to display the amount of comments?
So there are 2 pages for example: blog list and blog single - i want to showing the amount of comments for each post on the blog list page.
Did you try what I suggested above to see what the results are? That will at least tell you if you have data in the variables you are expecting it in.
I am afraid, amount of comments is not get from DB for the list of posts. So additional code modifications are required to do it