Not a developer? Go to MovableType.com

Documentation

EntryCommentCount

Outputs the number of published comments for the current entry in context.

Attributes

All <mt:EntryCommentCount> attributes are optional. The most common attributes are:

singular

Allows special formatting for when the number of published comments for the entry is equal to 1.

<$mt:EntryCommentCount singular="1 comment">

plural

Allows special formatting for when the number of published comments for the entry is greater than 1. # is automatically replaced with the number of objects.

<$mt:EntryCommentCount plural="# comments">

none

Allows special formatting for when the number of published comments for the entry is 0 (zero).

<$mt:EntryCommentCount none="No comments">

or

<$mt:EntryCommentCount none="None">

top

if specified, gets a count of comments that do not contain a reply.

Example

<$mt:EntryCommentCount singular="1 comment" plural="# comments" none="no comments"$>
Back

1 Comment

Dave Aiello

Dave Aiello on June 18, 2010, 1:16 p.m. Reply

We’re recognizing Gautam’s observation by adding it to the documentation. Thanks.