comment_author_url_link

Sponsored Link

コメント投稿者のURL(通常は、自分のWeb サイト)を、1つ提供されていた場合、リンクして表示します。
このタグは、ループ、またはコメントループ内でなければなりません。

get_comment_author_url_linkの値を取得して使用します。

Sponsored Link

Displays the comment author’s URL (usually their web site), linked, if one was provided. This tag must be within The Loop, or a comment loop.

Use get_comment_author_url_link to retrieve the value.

comment_author_url_linkのテンプレートタグ使用方法

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

デフォルトの使い方

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

リンクテキストと文字列

『コメント投稿者がサイトに訪れた』をテキスト文字列として、そのスタイルにリンクした前後に中黒点を追加して表示します。

Displays comment author’s URL as text string Visit Site of Comment Author and adds bullets before and after the link to style it.

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

comment_author_url_linkのパラメーター

linktext

(string) リンクのリンクテキスト。デフォルトではコメント投稿者のURLです。

(string) Link text for the link. Default is the comment author’s URL.

before

(string)リンクの前に表示するテキストです。デフォルトはありません。

(string) Text to display before the link. There is no default.

after

(string)リンクの後に表示するテキストです。デフォルトはありません。

(string) Text to display after the link. There is no default.

関連テンプレートタグ

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, comment_author_rss, comment_text_rss, permalink_comments_rss, wp_list_comments, comment_reply_link, cancel_comment_reply_link, comment_form_title, comment_id_fields, previous_comments_link, next_comments_link, paginate_comments_links

a

Sponsored Link