Answer the question
In order to leave comments, you need to log in
Why is the number of comments not showing?
I can't understand why, the number of comments to the "news" infoblock entry is not displayed
Here is the code
<li class="post__icon post__icon--comments">Comments / <span><?=(strlen($arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"]["VALUE"]) > 0
? $arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"]["VALUE"] : "0");?></span></li>
what tips
Answer the question
In order to leave comments, you need to log in
check if there is anything in $arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"]["VALUE"]
<pre>
<?print_r($arItem["PROPERTIES"]["FORUM_MESSAGE_CNT"])?>
</ pre>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question