Ok so my goal here is to allow users to link there social media profiles onto their user pages. So i tried to print the field within an href statement so it would come out as a link. For example if the value for the field link is http://www.google.com, then it should output the text link with a link to google when clicked.
But it doesnt, it instead outputs the value for the field_link and links it to
Heres what i attempted at:
<html>
<a href="<?php print render($user_profile['field_link']); ?>">Link</a>
</html>
Any help is appreciated!
Edit: Ok so this is what it outputs:
<a href=" <div class="field field-name-field-link field-type-text field-label-hidden><div class="field-items"><div class="field-item even">http://www.google.com</div></div> </div> ">
But i only want the web address Please Help!!