We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE 6 Comment Total

How Do I?

gunnersmaj's avatar
gunnersmaj
4 posts
4 years ago
gunnersmaj's avatar gunnersmaj

I was wondering if you guys can help.

Basically, I have a page that has comments at the bottom. What I am trying to set up, is that at the top of the page it shows how many comments have been made in total.

The issues I am running into here is trying to get the number to show no matter the tags I use: - {total_comments} - {total_results} - {absolute_results}

In order to get the values to show up, I have to contain them within the {exp:comment:entries} tag. But in doing so it repeatedly repeats the number of comments. For example, if I had 3 comments on the page it would show 3 3 3. However, when I use a limit in the comment entries tag such as 1, it would only count the 1 entry and not the total.

I’m not sure what I’m missing here, and I imagine there is a simple solution, which I can’t seem to find.

Thank you in advance for any suggestions or help you may have.

       
szgalbraith's avatar
szgalbraith
6 posts
4 years ago
szgalbraith's avatar szgalbraith

Can you post an example of your code? Using the {comment_total} in your entries tag should work normally.

       
tomusa0106's avatar
tomusa0106
2 posts
3 years ago
tomusa0106's avatar tomusa0106

The information you shared is very accurate, it gives me the knowledge that I need to learn. Thank you for sharing this useful information. contexto game

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.