WordPress:Template Tags/comment type

来自站长百科
Fludlen讨论 | 贡献2008年7月1日 (二) 17:26的版本
跳转至: 导航、​ 搜索

Description

描述

Displays the type of comment (regular comment, Trackback or Pingback) a comment entry is. This tag must be within WordPress:The Loop, or a comment loop.

描述一个评论内容所属于的评论类型(定期的评论, Trackback 或者Pingback)。必须在The Loop或者一个评论loop内使用这个标签。

Usage

用法

%%% <?php comment_type('comment', 'trackback', 'pingback'); ?> %%%

%%% <?php 评论_类型('评论', 'trackback', 'pingback'); ?> %%%

Example

<p><?php comment_type(); ?> to <?php the_title(); ?>: </p>

例子

<p><?php 评论_类型(); ?> to <?php the_title(); ?>: </p>

Parameters

参数

comment
(string) Text to describe a comment type comment. Defaults to 'Comment'.
trackback
(string) Text to describe a Trackback type comment. Defaults to 'Trackback'.
pingback
(string) Text to describe a Pingback type comment. Defaults to 'Pingback'.


评论
(string) 描述评论类型的文本。默认'评论'
trackback
(string) 描述类型评论的文本。默认'Trackback'
pingback
(string)描述 Pingback类型评论的文本。默认 'Pingback'

Related

模板:Tag Comments Tags

模板:PHP Function Tag Footer

相关的

模板:标签评论标签

模板:PHP 函数 标签 页底文字