WordPress: Template Tags/comment excerpt:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
== Description ==
== 描述 ==
== 描述 ==


Displays an excerpt (maximum of 20 words) of a comment's text. <strike>This tag must be within [[WordPress:The Loop]], or a comment loop.</strike>  This tag will work within a comment loop.
显示评论文本的摘录(最多20个单词)。这个标签必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用。标签必须在评论loop内运行。
 
显示评论文本的摘录(最多20个单词)。<strike>这个标签必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用。标签必须在评论loop内运行。
 
== Usage ==


%%% <?php comment_excerpt(); ?> %%%


== 用法 ==
== 用法 ==


%%% <?php comment_excerpt(); ?> %%%
%%% <? php comment_excerpt(); ?> %%%


== Example ==
==例子 ==


  &lt;p&gt;Latest comment: <?php comment_excerpt(); ?>&lt;/p&gt;
  &lt;p&gt;Latest comment: <?php comment_excerpt(); ?>&lt;/p&gt;
==例子 ==
&lt;p&gt;最近的评论: <?php comment_excerpt(); ?>&lt;/p&gt;
== Parameters ==
This tag has no parameters.


== 参数 ==
== 参数 ==


这个标签没有参数。
这个标签没有参数。
== Related ==
{{Tag Comments Tags}}
{{No Param Tag Footer}}


== 相关的 ==
== 相关的 ==

2008年7月11日 (五) 16:12的最新版本

描述[ ]

显示评论文本的摘录(最多20个单词)。这个标签必须在The Loop或者一个评论loop内使用。标签必须在评论loop内运行。


用法[ ]

%%% <? php comment_excerpt(); ?> %%%

例子[ ]

<p>Latest comment: <?php comment_excerpt(); ?></p>

参数[ ]

这个标签没有参数。

相关的[ ]

模板:标签评论标签

模板:没有Param 标签页底文字