模板标签-comment_author_url_link()

0条评论

说明

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

用法

<?php comment_author_url_link('linktext', 'before', 'after'); ?> 

示例

默认用法

web site: <?php comment_author_url_link(); ?><br />  

链接文本和链接样式

将评论者的url链接的链接文本显示为访问该用户的网站,并在链接前后添加居中圆点:

<?php comment_author_url_link('Visit Site of Comment Author', ' &bull; ', ' &bull; '); ?>

参数

linktext

(字符串)url链接的链接文本。默认为评论者的网站地址。

before

(字符串)显示在链接前的文本。无默认值。

after

(字符串)显示在链接后的文本。无默认值。

 

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许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.