Tell us what you are trying to do?
Allow users to input link text when they add a URL custom field. It only seems possible to enter the link itself.
Is there any documentation that you are following?
Is there a similar example that we can see?
What is the link to your site?
Hi there
There is no such option, I'm afraid.
You would need a separate field to store the link text, apart from the link URL, and then when outputting the URL field construct your own link markup where the href attribute comes from the raw value of the URL field and the anchor text comes from the link text field.
My issue is resolved now. Thank you!
When you say separate field, do you mean a completely separate custom field? I think that would probably be too complicated. Or is it possible to add a sub-field to an existing field, or make a new field type based on an existing one maybe? I don't mind getting my hands dirty, if it's possible to do it.
It's a pity an option for link text isn't in the URL field, as you end up with a lot of ugly URLs cluttering the page. And it's a basic part of adding links.
Not to worry. I've made a feature request for it anyway.