Using custom field for a link
-
I’m using Pods to manage a Custom Post Type. One of the custom fields is a URL and in my dev environment it has (for example)
http://blah.com/. This is using Pod’s “website” field type (see https://pods.io/docs/learn/field-types/website/ )I can access this in the WPUPG template facility using
[wpupg-item-custom-field key="titlelink" display="inline"],but when I place this inside an ‘A’ tag like this:
<a href='[wpupg-item-custom-field key="titlelink" display="inline"]'>[wpupg-item-title]</a>it renders the code without the
http:and with a rogue</span>at the end like this:
<a href='//blah.com/</span>'>Any advice?
The topic ‘Using custom field for a link’ is closed to new replies.