Adding custom fields to media uploader

Hi,

I am using the code here to add two fields to my single posts media.

http://www.wpbeginner.com/wp-tutorials/how-to-add-additional-fields-to-the-wordpress-media-uploader/

I am inserting

echo get_post_meta(get_post_thumbnail_id(), 'be_photographer_url', true);

and

echo get_post_meta(get_post_thumbnail_id(), 'be_photographer_name', true);

into my template.

Now, how can I only have the name show up and have the name link to the url directly? (ie. not showing the url as text)

Kind of link: PHOTOGRAPHER NAME but in php.