Home › Forums › Support › Can I change what's shown by {{post_author}} tag? This topic has 3 replies, 2 voices, and was last updated 6 years, 8 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts August 10, 2017 at 10:17 am #363241 Jan Hi, when I use {{post_author}} tag in Page Header, it shows the_author_meta(‘nickname’) information. Is it possible to change it to the_author_meta(‘display_name’)? I tried to create custom shortcode ( https://generatepress.com/forums/topic/single-post-page-header-issues/#post-350710 ) for that purpose, but the returned value is shown right after .inside-content-header element, not in the place I put the shortcode in. thanks August 10, 2017 at 11:18 am #363317 TomLead Developer Lead Developer Try this instead: add_shortcode( 'avatar', 'tu_author_avatar' ); function tu_author_avatar() { ob_start(); global $post; $author_id = $post->post_author; get_avatar( $author_id, 32 ); return ob_get_clean(); } August 10, 2017 at 12:39 pm #363402 Jan Thank you, Tom. It’s working now. ๐ August 11, 2017 at 12:08 am #363687 TomLead Developer Lead Developer You’re welcome ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In