Hi Support
The timed email notifications from expired posts are not retrieving post-specific information correctly from the database to populate the email notification correctly.
1) The first name of the user is not being pulled correctly when the notification is being sent out. I have tried with 2 variants:
We previously had a ticket with Nigel (https://toolset.com/forums/topic/user-first-name-not-inserted-correctly-in-translated-user-forms-notifications/) in which he offered the tip to use
[wpv-user field="user_firstname" id="%%USER_USERID%%"]
instead of
[wpv-user field="user_firstname"]
, the latter being what is inserted if you choose User first name via the GUI.
This was in the context of email notifications being sent out on new Post creation, which worked. For post expiry notifications, with the 2nd variant, the name appears correctly in the test email which you can send from the notification settings, however when the post expires and the "real" notification goes out, the first name is omitted.
2) For testing purposes, I added the specific post title to the notification so that the notification is post-specific, however the Post Title does not appear to be being pulled correctly from the database in the timed notification either.
Notification "[Post Form - New Job Ad] - Notify Family 7 days prior to Job Ad Expiry Date" is specific, referencing the post title:
Hi [wpv-user field="user_firstname"]
<p>
<strong>Your Job Ad <strong>[wpv-post-title]</strong> will expire in 7 days.</strong>
Notification "[Post Form - New Job Ad] - Notify Family 3 days prior to Job Ad Expiry Date" I left as the previously generic text:
Hi [wpv-user field="user_firstname" id="%%USER_USERID%%"]
<p>
<strong>One of your Job Ads will expire in 3 days.</strong>
and created 2 new job Ads, one in English and one in German.
Results:
- None of the notifications from the timed email notifications contains the post-specific content (neither user first name nor post title.)
- Neither of the two syntaxes for user first name worked in the notifications
- The post title was not populated in the email notification
Question: is any of the used placeholder syntax correct (I picked this via the GUI). If not what should we be using as placeholders in CRED forms? I've seen numerous posts with the %%-%% style notation, is this what should be being used? Is there a list of correct placeholders anywhere in the support forum? I looked for the official comprehensive list but couldn't find the relevant documentation, just old posts with some suggestions.
Kind regards
Simon