Not a developer? Go to MovableType.com

Documentation

BlogCommentCount

Returns the number of published comments associated with the blog currently in context.

Attributes

MultiBlog Attributes

This template tag supports the multiblog template tags.

Count Attributes

singular

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

<mt:BlogCommentCount singular="1 entry">

plural

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

<mt:BlogCommentCount plural="# entries">

none

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

<mt:BlogCommentCount none="No entries">

or

<mt:BlogCommentCount none="None">

top

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

Example

<mt:BlogCommentCount singular="1 comment" plural="# comments" none="No comments">

This returns

"1 comment" or "9 comments" or "No comments".
Back