the_author_firstname

AUTHOR TAG

What It Does

Displays only the first name of the post’s author. This is defined from within the admin panel at Administration > Profile > Your Profile. the_author_firstname must be used within The Loop.

Code

<?php the_author_firstname(); ?>

Example

The following example will display the post author’s first name:

<p>The author of this post is <?php the_author_firstname(); ?></p>

Of course, the verbage surrounding the_author_firstname can be changed to whatever you like.

To display the author’s last name only, see the_author_lastname

To display the author’s first and last name, see the_author