Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Is there a way to link author’s avatar (in author box) with his profile page?
From the userpro API, you can display author profile link using this simple php:
$url = $userpro->permalink( get_the_author_meta(‘ID’) );
Now you can do something like <a href="<?php echo $url; ?>">Author Profile</a>
In this code, what should i add to link the avatar to the user profile (author)?
$user_id = get_the_author_meta(‘ID’);
echo get_avatar($user_id, $size=50);
echo userpro_show_badges($user_id, $inline=true);
You must be logged in to reply to this topic.