Skip Navigation

[Résolu] ‘Masked’ URL

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user wanted to attach a link to his custom field text using the link that is in another custom field.
Solution:

To do this please follow the structure below.

<a href='[types field='my-url-field' output='raw'][/types]'>[types field='my-text'][/types]</a>

This should help.

This support ticket is created Il y a 6 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par Ljuba Il y a 6 années et 9 mois.

Assisté par: Shane.

Auteur
Publications
#617983

Is it simple way to add 'masked' url (except to using WYSIWYG editor link button)?

#618051

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

When you refer to a masked url you're talking about a url like this -> lien caché correct?

If so then you can create a URL field type and then add the URL there.

Please let me know if this helps.
Thanks,
Shane

#618083
Editor_Link_02.png
Editor_Link_01.png

No, this is "URL Shortener".

It is visible on several places in this link lien caché, where is:

- Coordinates: 2°11′S 79°53′W (Coordinates: is Title, to not mix terminology and numbers are "masked text" with link "lien caché)")

and other example is

- City 344.5 km2 ('City' is again Title and '344.5 km2' 'masked text' for link "lien caché)")

a) So, Toolset URL field can possibility only to place link as it is (without masking) and URL lien caché) will be displayed as lien caché)

b) In WYSIWYG editor, yoou kan click on link icon and isert one value for link itself (lien caché)) and other value for text (so, here = 344.5 km2).

ATTACHMENTS
- First picture is WYSIWYG editor simple link/text insert box.
- In second is how it appear ‘masked’.

Hopefully, I was clear, as maybe my poor English caused misunderstanding.

#618308

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hello,

I understand what you are trying to achieve but when you use the "masking" as you describe it, you'll have to do it when you're displaying the contents on the frontend, so it would look like this.

<a href='[types field='my-url-field' output='raw'][/types]'>[types field='my-text'][/types]</a>

You can also create another custom field to hold the text that will be attached to the url as you can see in the example above

Please let me know if this helps.
Thanks,
Shane

#618340

Thanks, That is exactly the answer what I'm needed.