Problem:
The issue here is that essentially the user wanted a forum type setup and wanted the ability to send notifications to their parent CPT when a new child post is created.
Solution:
The best way I can think of this is to store the parent ID in the child form so that you can retrieve the author email from the parent.
Take a look at this code below.
[cred_generic_field type='hidden' field='hidden-parent-slug-id'] { "default":"[wpv-post-author format="meta" meta="ID" item="[wpv-search-term param='parent_slug_id']"]" } [/cred_generic_field]
This way you can send the notifications to the parent. So essentially if you are creating a child post that is click to from the parent you will get a URL parameter similar to "parent_slug_id" added to your URL to the child post. This will have the ID of the parent post in it.
From this ID you can retrieve the author information to send the notifications to.
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/#creating-forms-when-a-parent-post-is-preselected
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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)