WordPress: Template Tags/comment excerpt:修订间差异
来自站长百科
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第1行: | 第1行: | ||
== 描述 == | == 描述 == | ||
显示评论文本的摘录(最多20个单词)。这个标签必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用。标签必须在评论loop内运行。 | |||
== 用法 == | == 用法 == | ||
%%% <?php comment_excerpt(); ?> %%% | %%% <? php comment_excerpt(); ?> %%% | ||
== | ==例子 == | ||
<p>Latest comment: <?php comment_excerpt(); ?></p> | <p>Latest comment: <?php comment_excerpt(); ?></p> | ||
== 参数 == | == 参数 == | ||
这个标签没有参数。 | 这个标签没有参数。 | ||
== 相关的 == | == 相关的 == |
2008年7月11日 (五) 16:12的最新版本
描述[ ]
显示评论文本的摘录(最多20个单词)。这个标签必须在The Loop或者一个评论loop内使用。标签必须在评论loop内运行。
用法[ ]
%%% <? php comment_excerpt(); ?> %%%
例子[ ]
<p>Latest comment: <?php comment_excerpt(); ?></p>
参数[ ]
这个标签没有参数。