Go to main content

Comments count

Contents

Syntax

<txp:comments_count />

The comments_count tag is a single tag which is used to display the number of comments associated with a particular article.

Though comments_count can be used independently, it is also called by comments_invite to append the comments count to the comments_invite link.

Used in an article form.

Attributes

This tag has no attributes of its own. It accepts only the global attributes .

Examples

Example 1: Display comment invitation and count

But only if any comments are associated with the current article.

<txp:if_comments>
    <p>
        <txp:comments_invite showcount="0" /> |
        <txp:comments_count /> respones received.
    </p>
</txp:if_comments>

Other tags used: comments_invite, if_comments.

If you notice any kind of problem with this page's construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)