WordPress:Template Tags/comment type
来自站长百科
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'。