the_author_lastname
AUTHOR TAG
What It Does
Displays only the last name of the post’s author. This is defined from within the admin panel at Administration > Profile > Your Profile. the_author_lastname must be used within The Loop.
Code
<?php the_author_lastname(); ?>
Example
The following example will display the post author’s last name:
<p>Mr. <?php the_author_lastname(); ?> wrote this post.</p>
Of course, the verbage surrounding the_author_lastname can be changed to whatever you like.
To display the author’s first name only, see the_author_firstname
To display the author’s first and last name, see the_author




