Skip Navigation

[Resolved] urls such as link to Twitter account showing as text not link

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

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

Problem: I would like to display URLs as links.

Solution: Use the Types field shortcode to display URLs as links:

[types field="facebook"][/types]

Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#url

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Brenda Holmes 7 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#571895
2017-09-20.png

I am trying to: add various social media as links to custom post Things

Link to a page where the issue can be seen: hidden link

I expected to see: the urls for Twitter etc as live links to their accounts

Instead, I got: links that were just text

I've used a cred form for this.

Thanks

#571909

Hi, it depends on how these custom fields were created. If these custom fields are "URL" fields, you can use the Types field shortcode to generate an HTML link:

[types field="facebook"][/types]

More information about that here:
https://toolset.com/documentation/customizing-sites-using-php/functions/#url

However, if the fields are basic text, like a "Single line", you must construct the link yourself using HTML, since Types does not automatically convert URLs in strings to links:

<a href="[types field='facebook'][/types]">[types field="facebook"][/types]</a>

Please let me know if you have additional questions about that, or if I've misunderstood your request, and I'll be glad to take another look.

#572691

Thanks!

The forum ‘Types Community Support’ is closed to new topics and replies.