- 赤色のリンクは、まだ日本語Codex に存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
- この Wiki はいつでも誰でも編集できます。ログインアカウントの取得からどうぞ :)
- 5月23日に MySQL 4.0 → 5 へ移行しました。動作不良等があればご一報ください (連絡先)
テンプレートタグ/the author login
出典: WordPress Codex 日本語版
< テンプレートタグ
このテンプレートタグ the_author_login は、記事の投稿者のユーザー名(ログインID)を表示します。このタグは The Loop 内でのみ使えます。
注: 通常、この情報をサイト上などで公開するのは好ましくありません。
<?php the_author_login(); ?>
<p>投稿者ユーザー名: <?php the_author_login(); ?></p>
表示結果:
投稿者ユーザー名: johnsmith
このタグにパラメータはありません。
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

