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

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == 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 w...)
 
无编辑摘要
第1行: 第1行:
== Description ==
== 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.
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个单词)。<strike>这个标签必须在[[WordPress:The Loop|The Loop]]或者一个评论loop内使用。标签必须在评论loop内运行。


== Usage ==
== Usage ==
%%% <?php comment_excerpt(); ?> %%%
== 用法 ==


%%% <?php comment_excerpt(); ?> %%%
%%% <?php comment_excerpt(); ?> %%%
第10行: 第18行:


  &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 ==
== Parameters ==


This tag has no parameters.  
This tag has no parameters.  
== 参数 ==
这个标签没有参数。


== Related ==
== Related ==
第20行: 第36行:


{{No Param Tag Footer}}
{{No Param Tag Footer}}
== 相关的 ==
{{标签评论标签}}
{{没有Param 标签页底文字}}

2008年7月1日 (二) 17:27的版本

Description

描述

Displays an excerpt (maximum of 20 words) of a comment's text. This tag must be within WordPress:The Loop, or a comment loop. This tag will work within a comment loop.

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

Usage

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

用法

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

Example

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

例子

<p>最近的评论: <?php comment_excerpt(); ?></p>

Parameters

This tag has no parameters.

参数

这个标签没有参数。

Related

模板:Tag Comments Tags

模板:No Param Tag Footer

相关的

模板:标签评论标签

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