各ページ右上の画像広告経由でコンピュータウィルスがダウンロードされた可能性があります。ウィルスチェックをお願いします。詳しくは http://bono.s201.xrea.com/2008/06/693-virus_by_xrea_ad/ をご覧ください。ご迷惑をおかけしてしまい大変申し訳ありません。

テンプレートタグ/the author link

出典: ps*wiki

目次

説明

このテンプレートタグ the_author_link は、記事の著者のウェブサイトへのリンクを表示します。ウェブサイトフィールドは、ユーザプロフィール(Administration > Profile > Your Profile)で設定します。リンクテキストは、著者のプロフィールの Display name publicly as フィールドです。このタグは The Loop 内でのみ使えます。

このテンプレートタグは WordPress 2.1 以上でのみ使えます。

使い方

<?php the_author_link(); ?>

用例

著者のプロフィールの Display name publicly as フィールドの名前を、著者のウェブサイト URL へのリンク付きで表示します。この例では、著者の表示名は James Smith です。

Written by: <?php the_author_link(); ?>

表示結果:

Written by: James Smith

パラメータ

このタグにパラメータはありません。

変更履歴

  • 2.1 : 新規テンプレートタグ

the_author, the_author_description, the_author_login, the_author_firstname, the_author_lastname, the_author_nickname, the_author_ID, the_author_email, the_author_url, the_author_link, the_author_icq, the_author_aim, the_author_yim, the_author_msn, the_author_posts, the_author_posts_link, list_authors, wp_list_authors


MediaWiki
他の言語