テンプレートタグ/the author login
提供: WordPress Codex 日本語版
< テンプレートタグ
このテンプレートタグは WordPress 2.8 から非推奨となりました。後継となる新しいテンプレートタグが作られたか、動作対象外となり、WordPress の将来のバージョンで削除される見込みです。
このタグを使っていた場合は、後継の the_author_meta
に切り替えてください。
説明
このテンプレートタグ the_author_login
は、記事の投稿者のユーザー名(ログインID)を表示します。このタグは The Loop 内でのみ使えます。
注: 通常、この情報をサイト上などで公開するのは好ましくありません。
使い方
<?php the_author_login(); ?>
用例
<p>投稿者ユーザー名: <?php the_author_login(); ?></p>
表示結果:
投稿者ユーザー名: johnsmith
パラメータ
このタグにパラメータはありません。
関連
作成者タグ:
the_author(),
get_the_author(),
the_author_link(),
get_the_author_link(),
the_author_meta(),
get_the_author_meta(),
the_author_posts(),
get_the_author_posts(),
the_author_posts_link(),
get_author_posts_url(),
get_the_modified_author(),
the_modified_author(),
wp_dropdown_users(),
wp_list_authors()
関数リファレンス、テンプレートタグ目次もご覧ください。