Skip Navigation

[Resolved] add " mail to " and " call for mobile " to dynamic links

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.

Our next available supporter will start replying to tickets in about 5.90 hours from now. Thank you for your understanding.

This topic contains 5 replies, has 2 voices.

Last updated by youssefe 1 month, 4 weeks ago.

Assigned support staff: Waqar.

Author
Posts
#2188145
sd.png

hello there
i need to make the call button to use a dynamice number field to pass a call , and the email button to use dynamic email filed also to send email
can help me to do so please
here is the link to my page : hidden link
Ex : hidden link ps"i dont know if this site is using dynamic content or static one"
thanks in advance !!

#2188475

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

To suggest the best way to achieve this, I'll need to see how these icons are set up in the admin area.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2188819

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for sharing the admin access.

In your content template "Modèle pour Cartes Digitales", I added the shortcode to get the current post's "e-mail" field, in the link settings for the email icon block, like this:


mailto:[types field='e-mail' output='raw'][/types]

And in the paragraph block below it, I used the same shortcode in the HTML code for the text link, like this:


<a href="mailto:[types field='e-mail' output='raw'][/types]">E-mail</a>

Similarly, in the link settings for the phone icon, I added the shortcode for the "numero-du-telephone" field:


tel:[types field='numero-du-telephone' output='raw'][/types]

And in the paragraph block below it, I used the same shortcode in the HTML code for the text link:


<a href="tel:[types field='numero-du-telephone' output='raw'][/types]">Appel</a>

#2189255

thank u so much ur a life saver
so i can just understand it better :
i can put this prametre " mailto:[types field='e-mail' output='raw'][/types] " into the link filed and it will work ... isn't it ?

#2189463

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for writing back and glad I could help.

> i can put this prametre " mailto:[types field='e-mail' output='raw'][/types] " into the link filed and it will work ... isn't it ?
- Yes, that is correct.

You'll find the guide on Types Field API shortcodes at:
https://toolset.com/documentation/customizing-sites-using-php/functions/

#2189509

My issue is resolved now. Thank you!