<$mt:BlogCommentCount$>
Returns the number of published comments associated with the blog currently in context.
Attributes ¶
- singular="TEXT" plural="# TEXT" none="TEXT"
include_blogsexclude_blogsinclude_websitesexclude_websites
Example ¶
<$mt:BlogCommentCount singular="1 comment" plural="# comments" none="No comments"$>
This returns
"1 comment" or "9 comments" or "No comments".
(Example added from the Mihai's comment, Thanks !)
This page was last updated on 2011-05-23, 08:37.
Mihai Bocsaru
November 10, 2009 12:46 PM | Reply
You may like to know about the following undocumented attributes for this tag:
singular="1 comment" plural="# comments" none="No comments"
Here is a sample of how you could use them:
<$mt:BlogCommentCount singular="1 comment" plural="# comments" none="No comments"$>
The above would return:
"1 comment" or "9 comments" or "No comments".
You could customize the expressions "comment", "comments" and "No comments" from the above attributes.
Enjoy ;)