Sauter la navigation

[Résolu] get value from parent post on cred notifications

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

Auteur
Publications
#1099535

I have a post type called UPN, inside I have some fields, like "upn_number" , just a regular text. Also I have a child post with relationship enabled called "muestra".

Before updating (I was using a beta old version of types, cred, etc. Now I have all updated) to show a parent field in the CRED notifications email I was using this:

 [types field="upn_number" id="$upn"][/types]

This works perfectly. Now after the update there is no value on the notification email.

So the field of that parent post is "upn_number". I tried with @ and other things but I can "capture" the value of "upn_field"

I expected to see:

The value of that particular field (parent post)

The relationship exists and if you provide me a private reply I can share login/password to the dev environment.

Can you provide me any light on this?
Thanks

#1099581

I think I found a solution/trick

Go to a view, click on fields and views, select your desired field, click on "post selection" then "a post related to the current post, set by types relationship"

After this, copy the code generated on the view and paste on the cred notifications

Feature: this should be on cred notifications too, but this way you can do it 🙂