I have added some code to my website to show the user’s website link (please see below) but the website link is not clickable so
- I want to make the user website link clickable and highlighted.
- I would like that if the user inputs
https://mywebsite.com
orhttps://www.mywebiste.com
in that field it only show the website name like thismywebsite.com
Could you help me to achieve it?
'field' => 'web', // Field name or ID.
);
echo <a href="<?php echo $my_bio_excerpt; ?>" class="">click here</a>
Thank you.
2
Answers
I would suggest to add an
<a href></a>
to make it a link – see https://www.w3schools.com/tags/att_a_href.aspYour PHP syntax is wrong in:
Should be: