Skip Navigation

[Résolu] wpv-post-author not working in email notifications when post set to expire

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I would like to add the post author's first name to an email notification, but the wpv-post-author shortcode doesn't behave consistently.

Solution: Add the post ID placeholder for more specificity:

[wpv-post-author format="meta" meta="first_name" id="%%POST_ID%%"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author
https://toolset.com/documentation/user-guides/how-to-use-custom-placeholders-in-cred-notifications/

This support ticket is created Il y a 6 années et 2 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par julieP Il y a 6 années et 2 mois.

Assisté par: Christian Cox.

Auteur
Publications
#1108817
IMAGE 1.PNG
IMAGE 2.PNG

I have a CPT set to expire. The form contains 3 email notifications all set to be sent to the post author. The first is sent when the form is submitted, the second 5 hours before expiry and the third 3 minutes before expiry. Each email contains a greeting:-

<p>Hello [wpv-post-author format="meta" meta="first_name"]</p>

I've noticed that the wpv-post-author shortcode returns the user's name in the first email but not in the second or third (the notifications triggered by conditions based on the expiry date). See Images 1 & 2.

This wasn't an issue prior to the recent upgrade to CRED 2.1.

This is a test install so I can't provide access. Please endeavour to test this yourselves or provide private fields for me to provide a zipped database dump and a zipped files dump. Thanks.

#1109085

Hi, please add the post ID placeholder for more specificity, like this:

<p>Hello [wpv-post-author format="meta" meta="first_name" id="%%POST_ID%%"]</p>
#1109417

Aha that seems to be working now - thanks!