Accueil › Toolset Professional Support › custom field as link for a view
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
This topic contains 2 réponses, has 2 voix.
Last updated by emilyr Il y a 8 années et 1 mois.
Assigned support staff: Luo Yang.
i have a made a CPT that i am using only to make a view. in that CPT is a title, featured image and a custom field with a URL to an external site.
in my view, i would like the featured image to be a link to that URL in my custom field. i have searched the forums and tried everything i can think of, yet no dice.
site is here: hidden link
the two images at the top of the right column are what i would like to be links.
also, i have created the CPT and custom fields in Types.
Anglais (English )
Chinois simplifié (简体中文 )
Please try like this:
<a href="[types field="my-custom-field" output="raw"][/types]">[wpv-post-featured-image]</a>
You will replace my-custom-field with your custom URL field slug
'raw' | 'html' | 'normal'(default)
‘raw’=display raw data stored in DB, ‘html’=wrap data in HTML
luoy, this worked *perfectly* thank you so much!
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support