Not a developer? Go to MovableType.com

Documentation

WebsiteCommentCount

Returns the number of published Comments associated with the Website currently in context.

Attributes

*top

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:WebsiteCommentCount singular="1 comment">

plural

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

<mt:WebsiteCommentCount plural="# comments">

none

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

<mt:WebsiteCommentCount none="No comments">

or

<mt:WebsiteCommentCount none="None">

top

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

Example

This returns

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

1 Comment

Emily K on August 31, 2012, 9:38 a.m. Reply

When nobody has commented yet it returns 0 as an answer. Is it possible to return an empty place, because 0 comments is not the best to see under an article.