I have a form that allows child posts to be added. When a child post is added, I would like the author of the parent post to be notified (CRED email notifications). I can see that this has been discussed before, but I'm a little confused and want to make sure I am using the most up to date and simple solution.
Thanks in advance.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Sarah,
Thank you for getting in touch.
Is the child post created by clicking a link to the form from the Parent?
Is the Parent ID in the URL of the child form page?
Please let me know and we can go from there.
Thanks,
Shane
Shane,
The form to add a child is on the parent's post page. It is not a link, the complete form and its submit button are right there.
I hope this is what you are asking!
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Sarah,
Thank you for the information.
You should be able to do it by adding this field to your child post form in advanced mode.
<div class='hidden'>
[cred_generic_field type='email' field='parent-email']
{
"required":0,
"persist":1,
"validate_format":0,
"default":"[wpv-post-author meta='user_email']"
}
[/cred_generic_field]
</div>
Then add this css
From there you can set up a notification for this field.
Please let me know if this helps.
Thanks,
Shane