WordPress:Template Tags/comment author

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

Description

描述

Displays the comment author name; that is, the one supplied by the commenter. If no name is provided (and "User must fill out name and email" is not enabled under Discussion Options), WordPress will assign "Anonymous" as comment author. This tag must be within WordPress:The Loop, or a comment loop.

显示评论作者姓名;就是,发表评论的人提供的姓名(而且 "用户必须填写姓名和电子邮件地址" 而且讨论选项下面,没有激活),WordPress会赋予"匿名"作为评论作者名。必须在The Loop或者一个评论loop内使用这个标签。

Usage

用法

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

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

Example

例子

<div>Comment by <?php comment_author(); ?>:</div>

<div>Comment by <?php comment_author(); ?>:</div>

Parameters

This tag has no parameters.

参数

这个标签没有参数。

Related

模板:Tag Comments Tags

模板:No Param Tag Footer

相关的

comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss