Hi guys
Just implemented the author bio box via an Elements Hook and it’s showing up, but my gravatar pic isn’t getting pulled through.
I’m using this PHP..is there something up with it?
Thanks
<?php
global $post;
$author_id = $post->post_author;
?>
<?php echo get_avatar( get_the_author_meta( $author_id ));?>
<h5 class=”author-title”><?php printf( get_the_author_meta( ‘display_name’) );?></h5>
<p class=”author-description”><?php echo wp_kses( get_the_author_meta( ‘description’ ), null ); ?></p>