Skip Navigation

[Resolved] Creating a hyperlink using [types field='journalism_url'][/types]

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to wrap their URL field in anchor tags.

Solution:
You can do this by writing the shortcode like this.

<a href="[types field='journalism_url' output='raw'][/types] ">My URL </a>

100% of people find this useful.

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by paulS-21 6 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#949126
2018-07-17_22-21-13.png

I just purchased the views plugin and i have the field [types field='journalism_url'][/types] It displays the full url. like this

hidden link what i need it to do is to display the words "click here" and have it open in a new window.

I have tried all the combinations i can find in the forums but none are working, the full URL keeps showing

#949230

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Paul,

Thank you for contacting our support forum.

You can do this by writing the shortcode like this.

<a href="[types field='journalism_url' output='raw'][/types] ">My URL </a>

Please try this and let me know if it helps.
Thanks,
Shane

#949370

Worked perfectly! Thanks so much for your fast and accurate reply.

Regards
Paul