<?php if( !is_attachment() ): ?>
   <article class="blog-author media d-flex">
      <figure class="avatar">
         <?php echo get_avatar( $post->post_author , 250 ); ?>
   	</figure>
   	<div class="align-self-center">
         <h5 class="post-by"><?php esc_html_e( 'Written by: ' , 'honeypress' );?></h5>
      	<h4 class="name"><?php honeypress_get_author_name( $post );?></h4>
      	<p class="mb-2">
            <?php 
				$honeypress_user_data = get_user_meta( $post->post_author );
				echo esc_html( $honeypress_user_data['description'][0] );
				?>
         </p>
      	<p><a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" class="text-default ml-1"><?php esc_html_e('View All Posts','honeypress');?> <i class="fa fa-long-arrow-right pl-2"></i></a></p>
   	</div>
   </article>
<?php endif;