Home / WP / WP: Post Author Name
WP: Post Author Name

WP: Post Author Name

To get the author Information:

 
// if it isn't identified 
global $post; 
 
// Author Name
echo get_the_author_meta( 'display_name', $post->post_author );
 
// Author nickname
echo get_the_author_meta( 'nickname', $post->post_author );
 
// Author Description
echo get_the_author_meta( 'user_description', $post->post_author );
 
// Author URL
echo get_the_author_meta('url', $post->post_author);
 
// Author ID
echo get_the_author_meta( 'ID' , $post->post_author);

Leave a Reply

Scroll To Top