模板标签-comment_author_url()

0条评论

说明

该标签显示评论作者的URL(通常即评论者的网站地址)。该标签必须用在WordPress主循环(loop)或评论循环中。

若评论作者未提供URL,则该标签显示当前页面的URL。此时标签get_comment_author_url返回一个空字符串。

用法

<?php comment_author_url(); ?> 

示例

显示评论作者的URL链接,以评论作者名作为链接文本的一部分。

<a href="<?php comment_author_url(); ?>">Visit   
<?php comment_author(); ?>'s site</a>

参数

该标签无参数。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.