Template Tags/the author lastname
Материал из WordPress Wiki
Содержание |
Description
This tag displays the last name for the author of a post. The Last Name field is set in the user's profile (Administration > Profile > Your Profile). This tag must be used within The Loop.
Usage
%%% <?php the_author_lastname(); ?> %%%
Example
Displays author's first and last name.
<p>Post author: <?php the_author_firstname(); ?> <?php the_author_lastname(); ?></p>
Parameters
This tag does not accept any parameters.