Passer la navigation

[Résolu] Use a URL in a field as link in

This support ticket is created Il y a 1 year, 5 months. 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
- 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 3 réponses, a 1 voix.

Dernière mise à jour par rubenM-3 Il y a 1 year, 5 months.

Assisté par: Minesh.

Auteur
Publications
#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 lien caché (lien caché), but it doesn't work in lien caché

#2786742

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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:
- lien caché

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

Les langues: Anglais (English )

Fuseau horaire: 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!