Skip Navigation

[Resolved] Use a URL in a field as link in

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by rubenM-3 3 weeks, 1 day ago.

Assisted by: Minesh.

Author
Posts
#2786693
Captura de pantalla 2024-12-03 a las 19.50.34.png
Captura de pantalla 2024-12-03 a las 19.49.53.png

Hi, I'd like to use the value inside a field called website to create a link. It works in Catalan, main language, but not in Spanish. I use [tb-dynamic provider="__current_post" post="current" source="toolset_custom_field|dades" field="website" force-string="first"] as URL in link (and also as text in link). You can see it in hidden link (hidden link), but it doesn't work in hidden link

#2786742

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I can see the website link with the reference URL shared as well:
- hidden link

Do you mean the website link you configure is different in every language? if yes:
- Even you should not use the [tb-dynamic] shortcode as that is not the correct way.

You should use the types shortcode, for instance:

[types field="website"][/types]

More info:
- https://toolset.com/documentation/customizing-sites-using-php/functions/#url

#2786749
Captura de pantalla 2024-12-04 a las 8.13.35.png

Hi,
the website I configure is the same in all languages (this field is not translated). In Catalan i print the field and it's a link to the website. But in Spanish (and English) the same module in editor doesn't work. I've tried what you say, but is not working.

Thank you!

#2786764

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you should just remove the existing shortcode [tb-dynamic] and try to either add single field block and try to display website custom field using the single field block and check if that help you to resolve your issue.

More info:
- https://toolset.com/course-chapter/translating-real-estate-sites/
- https://toolset.com/lesson-placement/lesson-placements-1824681-1720753/

#2786849

It works, thank you!