I’ve got a section on a theme were I’ve called the author’s gravatar to show up as a picture that accompanies their post. I want to make to if a visitor clicks on that gravatar it would take them to the author’s page with their information and past posts.
So the code that calls the gravatar is: <?php echo get_avatar( get_the_author_email(), '70' ); ?>
So I tried this just to see if it would work: a href=" <?php author_post_link();?>" <?php echo get_avatar( get_the_author_email(), '70' ); ?> /a
And that didn’t work. So is there a way I can put the author’s link to their page and link it back to their gravatar picture?