Navigation überspringen

[Gelöst] Unable to create hyperlink in notification email for a dynamic url

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

Setup hyperlink in email notification with custom field values, The text wraps well in the test email but breaks down in the real email.

Solution:

I suggest you check these:

1) check those custom fields values, remove all HTML p tags

2) You can output the custom field raw values with output="raw" attribute, for example:

[types field="message-to-endorser" output="raw"][/types]

Relevant Documentation:

https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield

This support ticket is created vor 4 Jahre, 4 Monaten. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von himanshuS vor 4 Jahre, 4 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#1980387
#1980551

Hello,

There are some HTML p tags in the "breakdown text" you mentioned above, they will break the HTML a tag.

I suggest you check these:
1) check those custom fields values, remove all HTML p tags
2) You can output the custom field raw values with output="raw" attribute, for example:
[types field="message-to-endorser" output="raw"][/types]

More help:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield
‘raw’=Display raw data stored in DB.

#1981451

My issue is resolved now. Thank you!