WP SITES

3095 Coded Tutorials & 297 Plugins

3 Ways To Make a URL Added In a Custom Field a Clickable Link

If you add a URL to a custom field like you see in the following screenshot, it won’t automatically turn into a hyperlink and become clickable.

custom-fields

To make links added in custom fields hyperlink, choose from either of these 3 options:

  1. The 1st solution works in a custom function
  2. The 2nd solution works in a template file using opening and closing PHP tags
  3. The 3rd solution works in a custom function using any hook position and checks for valid URL’s

Was this helpful?

Yes
No
Thanks for your feedback!

Leave a Reply