Comments count

On this page:

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.

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.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please write an issue and we’ll fix it.