Is it possible to show comment count?

Solved4.64K viewsCore
0

Hey all,

I would like the Q&A forum on my site to look more active. Because the widget only shows the number of answers, you can’t get a realistic view of how active the forum is. Is there a way I can edit the code to show the comment count in the Questions widget and on the main Q&A page? Thanks for your help.

1

Use comment_number function:

https://codex.wordpress.org/Function_Reference/comments_number

Thanks for responding so quickly.

So all I need to add to questions.php is
Can you tell me where to add that? I just started to learn coding so I don’t want to break something.

You can add this to question.php. To get current question id you can use get_question_id()

You are viewing 1 out of 1 answers, click here to view all answers.