Advanced Template Set designs are available with the Unlimited, Premium, and Business Class plans. If you are not using an Advanced Template Set for your blog's design, go to Settings > Comments to change the comment settings.
Comment tags display the Comments posted by visitors to your blog. Comments are displayed on the individual post pages, and you can edit the Individual Archives Template to edit the display of comments below your post.
Container Tags
- MTComments:
<MTComments>
- A container tag representing a list of the comments posted by visitors to your blog. For each comment, you can use any of the tag variables below.
<MTComments> <a id="c<$MTCommentID$>"></a> <$MTCommentBody$> <p class="posted"><$MTTrans phrase="Posted by:"$> <$MTCommentAuthorLink spam_protect="1"$> | <$MTCommentDate$></p> </MTComments>
Note: Using the <MTComments> tag in an advanced template without a Lastn value and outside the context of an entry, will default to showing only 50 comments from the last 30 days instead of all comments.
- MTCommentEntry:
<MTCommentEntry>
- A container tag used to display information about the post to which the comment is attached; you can find more information on Post Tags here. Note that the
MTCommentDate
tag must be used outside of this container or it will display the post date instead of the comment date.
- MTEntryIfAllowComments:
<MTEntryIfAllowComments>
- A container tag whose contents will only be shown if the comment setting for the post is Allow.
- In the Main Index, DateBased Archives, and Category Archives templates, the
<MTEntryIfAllowComments>
tag is used to display links to the comment posting form on the individual post page. - In the Individual Entry Archive template, the
<MTEntryIfAllowComments>
tag is used to display the comment posting form.
<MTEntryIfAllowComments> | <a href="<$MTEntryPermalink$>#comments"><$MTTrans phrase="Comments"$> (<$MTEntryCommentCount$>)</a> </MTEntryIfAllowComments>
- MTEntryIfCommentsOpen:
<MTEntryIfCommentsOpen>
- A container tag whose contents will only be shown if the comment setting for the post is Open and is used to display the comment posting form.
Variable Tags
- MTCommentID:
<$MTCommentID$>
- the numeric ID of the comment.
- MTCommentBody:
<$MTCommentBody$>
- the text of the comment.
- MTCommentAuthorLink:
<$MTCommentAuthorLink$>
- the name of the comment author, linked to their URL if they submitted one, otherwise to their email address. Takes attribute
spam_protect
which will encode the contents against spam harvesters using the values 0 (no spam protection) and 1 (spam protection). Takes attributeshow_email
to indicate whether the email address will be displayed if no URL is entered for the comment author using the values 0 (email address is never displayed) and 1 (email address will be displayed if no URL entered). - MTCommentDate:
<$MTCommentDate$>
- the date that the comment was posted, can be formatted with .
- MTCommentAuthor:
<$MTCommentAuthor$>
- the name of the comment author.
- MTCommentEmail:
<$MTCommentEmail$>
- the email address of the comment author. Takes attribute
spam_protect
which will encode the contents against spam harvesters using the values 0 (no spam protection) and 1 (spam protection). - MTCommentURL:
<$MTCommentURL$>
- the URL submitted by the comment author, if one was.
- MTCommentAuthorPhoto:
<$MTCommentAuthorPhoto$>
- the commenter's userpic (if the user is signed in to a Typepad Profile, their designated userpic will be shown) or randomly generator avatar (if not signed in).
- MTCommentOrderNumber:
<$MTCommentOrderNumber$>
- the numeric order of a particular comment in the list of comments for an entry, starting at 1. Note that the order is dependent on the sort order (ascending or descending).