PHP Make an $ function to an link with an get function

175 Views Asked by At
global $userpro;
$user_id=get_the_author_ID(); 
echo $userpro->permalink( get_the_author_meta('ID'));
echo get_avatar( $user_id, 15 );
echo userpro_profile_data('display_name', $user_id, $profile_url);

with this code i get the user profile link and a username but i want to have the username as link to the user profile. so how i add the link to the user name?

If you have an question feel free to ask.

1

There are 1 best solutions below

8
On

You have the link $userpro->permalink( get_the_author_meta('ID')); and the text.

Read HTML a tag.