the_author

Sponsored Link

記事の著者名はこのテンプレートタグを使用する事によって表示する事が出来ます。このタグはループ内で使用する必要があります。

PHPで返して表示するためには、get_the_authorを使用します。

Sponsored Link

The author of a post can be displayed by using this Template Tag. This tag must be used within The Loop.

To return to PHP rather than displaying, use get_the_author.

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

<?php the_author(); ?> 

著者の’公開’名を表示する方法

公開フィールドとしてユーザー表示名に値を表示します。

Displays the value in the user’s Display name publicly as field.

<p>This post was written by<?php the_author(); ?></p>

the_authorのパラメーター

この関数は引数を取りませんでした。 (引数は廃止される可能性があります)

This function takes no arguments. (The arguments have been deprecated.)

関連テンプレートタグ

the_author, the_author_link, get_the_author_link, the_author_posts, the_author_posts_link, wp_list_authors, wp_dropdown_users, the_author_meta

Sponsored Link