Author Post Link
-
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?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Author Post Link’ is closed to new replies.