Wordpress Document

Author tags

Category tags

Comment tags

Date and Time tags

General tags

Geo tags

Link tags

Links Manager tags

Permalink tags

Post tags

Trackback tags

WP/PHP General

the_author

概要

投稿者名を表示、または返す

用法

<?php the_author(); ?>

引数

引数の指定は非推奨となっています
<the_author('idmode', display)>

idmode

(none)
プロフィールのデフォルトの名前を表示
'namefl'
名、姓(firstname-lastname)の順で表示
'namelf'
姓、名(lastname-firstname)の順で表示
'nickname'
ニックネームを表示
'login'
ログイン名(アカウント)を表示
'firstname'
名(firstname)を表示
'lastname'
姓(苗字)を表示

display

true
名前を表示(デフォルト)
false
名前を返す

用例

このブログの作者は <?php the_author(); ?> です。