Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

User:Thee17/the author meta

Description

This tag displays the requested infomation stored in the database name about the author of a post. The Configurable Fields are set in the user's profile (Administration > Profile > Your Profile). This tag must be used within The Loop.

Usage

 <?php the_author_meta('field'); ?> 

Example

<p>This post was written by <?php the_author_meta('first_name'); ?></p>

Parameters

field 
(string) The type author's information you are looking for.
  • (Default) tags are separated by whitespace and nothing is returned.
  • 'description' The author's description.
  • 'user_login' The author's login name (username)
  • 'first_name' The author's first name.
  • 'last_name' The author's last name.
  • 'nickname' The author's nickname.
  • 'user_email' The author's email address.
  • 'icq' The author's ICQ number. (Depreciated)
  • 'msn' The author's MSN number. (Depreciated)
  • 'aim' The author's AIM screen name.
  • 'yim' The author's Yahoo! IM id.
  • 'jabber' The author's Jabber / Google Talk name.
  • 'display_name' The author's preferred Display Name.

Related

the_author(), get_the_author(), get_the_author_id(), the_author_link(), get_the_author_link(), the_author_meta(), get_the_author_meta(), the_author_posts(), get_the_author_posts(), the_author_posts_link(), get_author_posts_url(), get_the_modified_author(), the_modified_author(), wp_dropdown_users(), wp_list_authors()