Module

Developer
Supported

Threaded Comments

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Yuri Salimovskiy

     

You must be logged in to post.

How can I query the number of child comment displayed?

Support Request

Ngon Com
Ngon Com

Hi Yuri!

I have 2 level of thread comment:

Comment (ID1)
     -- 
Comment (ID4)
     -- 
Comment (ID5)
     -- 
Comment (ID6)
Comment (ID2)
Comment (ID3

At comment (ID = 1), I have 3 child comment (ID = 4, 5, 6). So how can I query out that number?

Number of replies for comment (ID1is

Thank Yuri!

Yuri Salimovskiy
# 1
Developer
Yuri Salimovskiy

This is currently possible only with custom SQL query (something like SELECT COUNT(comment_id) AS replies FROM exp_comments WHERE parent_id=XX)

Ngon Com
# 2
Ngon Com

Thank Yuri!

loemrntdherid1
# 3
loemrntdherid1