Skip Navigation

[Closed] Adding Custom Post Type title to Gravity Forms email notification

This support ticket is created 4 years, 8 months ago. 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.

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)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Shane 4 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1623065

Tell us what you are trying to do?
Adding Custom Post Type title to Gravity Forms notification. I have already inserted the custom post email into the email To: field by using a hidden field and it works great. I will have 80 different companies and when a form is filled in on that company's page (post), that entry needs to have a different title. I have tried Request Service Form for {wpv-post-title} and Request Service Form for [wpv-post-title]. This seems like I'm just missing a piece. Do I need to create another hidden field to pull in the post title?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1623419

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

Actually unless the gravity forms notification hook can process shortcodes then you won't be able to use our Types shortcodes within their notification.

The best way to do it as you say is to create a hidden field and add your title to that field so that you can create the notification using that hidden field.

Thanks,
Shane

#1623569

Thanks Shane,
Do you know specifically what to put in the hidden field to get the Post titile? would it be {custom_field:wpcf-post-title} or something similar to that?

#1624285

{embed_post:post_title} is what finally worked!

#1624403

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Happy to see that you were able to get this resolved.

On a side note only custom fields created in Types will require the "wpcf-" prefix. If it is a default wordpress field you only need to put the field slug and not the wpcf- prefix.

Please let me know if everything is ok now.

Thanks,
Shane

The topic ‘[Closed] Adding Custom Post Type title to Gravity Forms email notification’ is closed to new replies.