Conversation Count?

Is there a built-in function similar to what Wordpress has with get_comments_number? I created a custom block template for page_list and it would increase click rates to display the number of comments on a page in this block. I know I could get this feature by using something like Disqus but I would prefer to use the Concrete system.

Hi @TravsVoid - so you’re looking to get the number of comments in a Conversations block on a page?

If you’re talking about doing it programmatically, there would be a couple more steps but you could do it. You would basically need to get the CoreConversations block controller for the Conversations block on the page, call the getConversationsObject() method on it, and then with the Conversations object call the getMessagesTotal() method on that and I think that would get you what you need.

1 Like

See How to get a block controller? - #2 by enlil

1 Like