Saltar navegación

[Cerrado] I am trying to use shortcodes to dynamicly show a clickable phone number.

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.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por Christopher Amirian 8 months, 3 weeks ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#2827098

I am trying to:
I have a page with many properties. Eeach property has a different contact person. I have set up post relationship where the contact person is the parent and the property is the child. I am trying to output the contact persons numbers and also make it clickable so people on smartphones can call it with ease. But i can not get this to work.
I am using the following line: enlace oculto

Link to a page where the issue can be seen:
enlace oculto

I expected to see:
A phone number that can be clicked and called. In the console i expected to see enlace oculto

Instead, I got:
Instead i see 91569453

#2827103

Christopher Amirian
Colaborador

Idiomas: Inglés (English )

Hi,

Welcome to Toolset support. I think you’re already pulling the parent’s field correctly:

You're already pulling the parent's field correctly:

That prints the number as plain text. To make it “tap-to-call”, wrap the raw value in a tel: link, and show the pretty value as the link text:

<em><u>enlace oculto</u></em>

Use output='raw' inside the href so the number has no extra HTML/formatting.

Thanks.

El debate ‘[Cerrado] I am trying to use shortcodes to dynamicly show a clickable phone number.’ está cerrado y no admite más respuestas.