WP Author post avatar after Post title

I have tried some recommendations but it doesn’t seems to work well. The code below just shows an empty image without my gravatar pic used by my email.

<header class="entry-header">
		<div class="container">
			<div class="row">
				<div class="col-lg-12 col-md-12">
					<?php the_title( '<h1 class="entry-title animated fadeInUp">', '</h1>' ); ?>
					<?php if ( 'post' == get_post_type() ) : ?>
						<div class="startright-entry-meta">
				<?php echo get_avatar( get_the_author_email(), '50' ); ?>
							<?php startright_posted_on(); ?>
						
						</div>
					<?php endif; ?>
				</div>
			</div>
		</div>
	</header>

The code

<?php echo get_avatar( get_the_author_email(), '50' ); ?>

doesnt works well.
Is there another way (as of PHP Code) to add author image as shown in the image above?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.