关于在mt中显示最新评论的完整代码

matt给了我下面这段代码,用来解决上篇文章提到的问题
 
<h2>最近收到的评注</h2>
<ul>
<MTComments lastn="12"  sort_order="descend">
<MTCommentEntry>
<li><a href="<$MTEntryPermalink$>#comment-<$MTCommentID$>">
Re:
<$MTEntryTitle$>
   </a>
   </MTCommentEntry>
  , by
  <$MTCommentAuthor$>
  (
   <$MTCommentDate format="%b %d"$>
)
</li>
</MTComments>
</ul>
 <p class="entry-footer">
 </p>
 
 
针对自己的css,修改了下,我使用就是下面这段
 
<div>
<h2 class="module-header">Recent Comments</h2>
<ul class="module-list">
<MTComments lastn="24" sort_order="descend">
<MTCommentEntry>
<li class="module-list-item">
<a href="<$MTEntryPermalink$>#more">
<$MTCommentBody$></a></li>
</MTCommentEntry>
</MTComments>
</ul>
</div>

Leave a Reply

Your email address will not be published.