WordPress: Template Tags/comment author email:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: == Description == Displays the comment author's email address, not linked. An email address must be provided if "User must fill out name and email" is enabled under [[WordPress:Discussio...)
 
无编辑摘要
第1行: 第1行:
== Description ==
== Description ==
== 描述 ==


Displays the comment author's email address, not linked. An email address must be provided if "User must fill out name and email" is enabled under [[WordPress:Discussion_Options#Before_a_comment_appears:|Discussion Options]]. This tag must be within [[WordPress:The Loop]], or a comment loop.
Displays the comment author's email address, not linked. An email address must be provided if "User must fill out name and email" is enabled under [[WordPress:Discussion_Options#Before_a_comment_appears:|Discussion Options]]. This tag must be within [[WordPress:The Loop]], or a comment loop.
显示评论作者的电子邮件地址,并不是链接的。如果[[WordPress:Discussion_Options#Before_a_comment_appears:|讨论 选项]]下面的"用户必须填写姓名和电子邮件地址"激活了,就必须提供一个电子邮箱地址。必须在[[WordPress:The Loop|The Loop]],或者一个评论loop内使用这个标签。


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


%%% <?php comment_author_email(); ?> %%%
%%% <?php comment_author_email(); ?> %%%
第11行: 第19行:
  &lt;a href="mailto&#58;<?php comment_author_email(); ?>"&gt;contact  
  &lt;a href="mailto&#58;<?php comment_author_email(); ?>"&gt;contact  
  <?php comment_author(); ?>&lt;/a&gt;
  <?php comment_author(); ?>&lt;/a&gt;
== 例子 ==
&lt;a href="mailto&#58;<?php 评论_作者_电子邮件(); ?>"&gt;contact
<?php 评论_作者(); ?>&lt;/a&gt;


('''Note:''' Displaying email addresses is not recommended, as email spammers could collect them from your site.)
('''Note:''' Displaying email addresses is not recommended, as email spammers could collect them from your site.)
('''注:''' 不推荐你显示电子邮件地址,因为电子邮件spammers会从你的站点上截获你的电子邮件地址。)


== Parameters ==
== Parameters ==
第23行: 第39行:


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

2008年7月1日 (二) 16:34的版本

Description

描述

Displays the comment author's email address, not linked. An email address must be provided if "User must fill out name and email" is enabled under Discussion Options. This tag must be within WordPress:The Loop, or a comment loop.

显示评论作者的电子邮件地址,并不是链接的。如果讨论 选项下面的"用户必须填写姓名和电子邮件地址"激活了,就必须提供一个电子邮箱地址。必须在The Loop,或者一个评论loop内使用这个标签。

Usage

用法

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

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

Example

<a href="mailto:<?php comment_author_email(); ?>">contact 
<?php comment_author(); ?></a>

例子

<a href="mailto:<?php 评论_作者_电子邮件(); ?>">contact 
<?php 评论_作者(); ?></a>

(Note: Displaying email addresses is not recommended, as email spammers could collect them from your site.)

(注: 不推荐你显示电子邮件地址,因为电子邮件spammers会从你的站点上截获你的电子邮件地址。)


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

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