txp:comments_count

The comments_count tag is a Single Tag. Textpattern will replace this tag with 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.

Syntax

The comments_count tag has the following syntactic structure…

<txp:comments_count />

Attributes

There are no attributes associated with comments_count.

Examples

Display comments invitation and comment count if any comments are associated with the current article.

<txp:if_comments>
	<p><txp:comments_invite showcount="0" /> <txp:comments_count /> people have already responded.</p>
</txp:if_comments>

Other tags used: <comments_invite />, <if_comments>

txp/comments_count.txt · Last modified: 2008/02/02 07:04 by hcgtv

Home Page | User Forums | Driven by DokuWiki
Copyright © 2008 xPattern