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

880
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.

608

Answer

Solution:

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

Read HTML a tag.

People are also looking for solutions to the problem: php - Doctrine Module: entity relationships being hydrated but not sticking to entity

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.