[Resuelto] WordPress shortcodes showing in email notifications
This support ticket is created hace 4 años, 10 meses. 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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
The shortcode for the email notification [wpv-post-body view_template="None"] is showing WordPress shortcodes as per the image attached. Is there anything that can be done about this ?
Can I check the details here so I can try and reproduce this?
You have a form to publish posts.
The notification from that form includes the post body in the content of the email, using the wpv-post-body shortcode.
The content of the post itself, submitted with the form, includes shortcodes such as, in your example, the caption shortcode, and this is being printed as text in the notification.
Thanks for your quick response Nigel. I am sorry I had missed the email notification!
Yes that is correct
The content of the post includes an image (Add media) with a caption. The caption shortcake which is generated by WordPress is showing on the email as per my image.
I created a form to publish posts which includes a notification sent when the form is submitted that includes the post content (from the wpv-post-body shortcode) in the notification body.
When completing the form I inserted an image with a caption in the content of the post and submitted the form.
I then checked the resulting email and saw that the caption shortcode had been correctly parsed and the caption displayed.
I don't have any info about your site, so I would ask that you first try the following:
- make sure that WordPress and all plugins are up-to-date, then test again
- try disabling all non-Toolset plugins and test again
- try switching theme to twentynineteen and test again
If disabling other plugins helps fix the problem then you should be able to identify the source of any conflict by a process of elimination.