Hi, I’m trying to add shortcodes to the hivepress email templates, but its not showing the content of the shortcode in emails, is there anyway around this? I’m a developer working on my client site, and i had to create a token in the email class to show the shortcode content, but i was looking for more dynamic solution to allow shortcode in the emails, and i noticed it’s escaping HTML, and not sure if allowing HTML shortcode will pose a risk, any advice would be appreciated. Thanks
Hello and welcome,
Maybe your email is sent as plain text instead of HTML ? Hence all the HTML is stripped off.
Make sure you use the search before posting.
Chances are you have an answer waiting for you.
Cheers !
1 Like
Hi,
Emails support adding shortcodes, but please note that email clients will strip any unsafe HTML and styles. For example, I tried to add [hivepress_listing_search_form]
shortcode to the user registration email content in HivePress/Emails for testing, and it looks like this Awesome Screenshot