Skip Navigation

[Resolved] [wpv-user field="user_email"] doesn't work when trying to use as a link.

This support ticket is created 4 years, 3 months ago. 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
- 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Jonathon Hanten 4 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1810481

I am trying to: Setup a user directory where the email address is a link from the users name. For example.

[wpv-user field="user_firstname"] [wpv-user field="user_lastname"]

I expected the frontend to show "mailto:dev@dev-local.local" instead I see "mailto:"

[wpv-user field="user_email"] displays correctly when by itself, but I don't really want to display the email without the ability to use it in a mailto.

Thank you. I have tried this in a generic site with 2020 theme and no additional plugins and it also doesn't work there.

#1810589

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jonathon,

Thank you for getting in touch.

Can you try doing it like this.

<a href="mailto:[wpv-user field='user_email']">[wpv-user field="user_firstname"] [wpv-user field="user_lastname"]</a>

The issue seems to be with the internal quotes that you are using.

Let me know if this change helps.
Thanks,
Shane

#1811303

My issue is resolved now. Thank you! Yes, that was the issue. I will remember that moving forward.