Hi all,
I’m trying to NOT display the comment heading if there are no comments. However, I’m not sure how to get the value of {comment_total} in my conditional so that I can set whether to display it or not. Can someone take a look at this and tell me if I’m on the right track?
Thanks
{!-- Should I put another exp:comment:entries tag here??? if so, where do I close it??? -->
{if {comment_total} > 0}
<h2>your thoughts…</h2>
<p><a name="comments"></a><br />
<br />
{exp:comment:entries weblog="{my_weblog}" limit="15"}<br />
<div class="comment_post"><br />
<div class="poster_name"><br />
{url_as_author}<br />
<span class="poster_details"> ~ {comment_date format='%g:%i %a'} on {comment_date format='%F %j, %Y'}</span><br />
</div><br />
<div class="{if {author_id} == 1 OR {author_id} == 2}g_e_comment {/if}comment_text"><br />
{comment}<br />
</div><br />
<br />
<hr class="clear" ><br />
</div><br />
<br />
{paginate}<br />
{if {total_pages} > 1}<br />
<h4 class="pagination"><br />
Page {current_page} of {total_pages} comment pages {pagination_links}<br />
</h4><br />
{/if} {!-- Closes if total_pages > 1 --}<br />
{/paginate}<br />
{/exp:comment:entries}<br />
{/if} {!-- Closes if comment_total > 0 near the top --}