Home › Forums › Newsletter Plugin Support › Third parties shortcode in email body
- This topic has 9 replies, 2 voices, and was last updated 1 day, 15 hours ago by
Michael.
-
AuthorPosts
-
May 9, 2025 at 3:53 pm #344059
Renato
ParticipantHi, I’ve tried to find something in the forum but with no success.
I’m trying to insert a shortcode of the TablePress plugin in the body of a newsletter, using the syntax [table id={profile_nn} /] in a Text block.
The very strange thing is that it works perfectly when I send the test email; on the other hand when I send to the same email address through a list the result is in the text [table id=xyzabcd /] with the right decoding of the profile field but without resolve the table content.
Is it a known issue of a workaround exists?
Thank you very much.
Renato AllodiMay 12, 2025 at 10:04 am #344138Michael
KeymasterHello Renato,
inserting that kind of content inside a Newsletter could be problematic, but anyway I find it weird that it works in the test email. Could you please send a test email to michael@thenewsletterplugin.com ?
Thanks,
MichaelMay 13, 2025 at 10:39 am #344248Michael
KeymasterHello Renato,
I didn’t get your email yet, but anyways, I took a look at the shortcode you’re trying to use. You’re basically putting a shortcode inside a shortcode, the latter gets rendered correctly, the “parent” one doesn’t. Is that right? Can you tell me where the second shortcode (profile_nn) is coming from?
Michael
May 13, 2025 at 10:58 am #344249Renato
ParticipantHello Michel,
I sent the two emails to the address indicated using the newsletter of our site and they are delivered. Have you checked the spam? I also sent a personal email with the explanation of the context. Now I will try to resend you a copy of the two emails, the first in preview mode, the second via list; I always do it privately because they contain my personal information. Let me know if you receive, thanks.
The shortcode {profile_nn} is one of the member’s custom fields of your plugin (!).May 13, 2025 at 11:33 am #344252Michael
KeymasterHello,
no, I didn’t get your emails. Anyway yes, sorry for the confusion: profile_nn is of course one of our tags, we execute it before the parent shortcode so that’s why you correctly see the rendered user id in the sent newsletter. Now we need to check why the tablepress shortcode doesn’t get rendered. I’ll get back to you shortly. Please let’s keep communicating here.
Michael
May 20, 2025 at 4:35 pm #344494Renato
ParticipantHello Michel,
any update on the issue?
Thanks.
RenatoMay 22, 2025 at 9:01 am #344546Michael
KeymasterHello Renato,
yes, sorry for this delay. You need to contact the support team of Tablepress and tell them to register the shortcode at the Wp init without conditions, or at least to make it available during cron execution. You can link them to this thread or also have them contact us directly at stefano@thenewsletterplugin.com.
Michael
May 22, 2025 at 9:36 am #344550Renato
ParticipantHello,
I’ve submitted the request here:
https://wordpress.org/support/topic/shortcode-in-newsletter-plugin/
Thanks,
RenatoMay 22, 2025 at 7:32 pm #344577Renato
ParticipantHi,
problem solved following the suggestion of TablePress developer Tobias.
Find the solution in the post at the link above.
Thanks for the help.
RenatoMay 23, 2025 at 11:11 am #344586Michael
KeymasterHello Renato,
we’re glad this has been solved. Saluti!
Michael
-
AuthorPosts
- You must be logged in to reply to this topic.