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.
To make links added in custom fields hyperlink, choose from either of these 3 options:
- The 1st solution works in a custom function
- The 2nd solution works in a template file using opening and closing PHP tags
- The 3rd solution works in a custom function using any hook position and checks for valid URL’s
Was This Tutorial Helpful?