Site logo

Archived topic

Author Image between Author name & Date

2 replies · Started by Abhisarika on May 27, 2020

Viewing posts 1–3 of 3

I am using wp show posts and i want to show Author image between the AUthor name and Date.
How can i achieve that.
I used below code from which i am able to get avatar image but not in between

// Fetch Author
add_action( 'wpsp_before_title', function( $output ) {
$avatar = get_avatar( get_the_author_meta() );
if ( 'post' == get_post_type() ) {

echo '<span class="author-avatar">' . $avatar . '</span>';
// echo $output;

}

} );
https://prnt.sc/soosz5

Hi there,

Any chance you can post this in the WP Show Posts forum (https://wpshowposts.com, as it doesn't relate to GeneratePress?

Thanks!

Thanks

This archived topic is closed to new replies.