Skip Navigation

[Resolved] Put custom post tile in the subject of the email of the contact form

This support ticket is created 5 years, 11 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 5 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1213060

I have a general contact form that appear in each post of a specific custom post.
I would like that when the user submit the form, in the subject of the email appear the post title of the post where the user submit the form.

Here is the link to my post: hidden link

So I would like that when the user submit the form, in the subject of the email appear the post title for example in that case: "Residencial Parque Azucarera".

#1213142

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - as far as I can see you are using "Contact Form 7" plugin that displays the contact form on that page:
=> https://wordpress.org/plugins/contact-form-7/

This is not related to Toolset actually, would you mind to contact the "Contact Form 7" support?

The following link may help you:
=> https://stackoverflow.com/questions/30619372/contact-form-7-email-subject-should-be-post-title

#1213171

Thank you for the response.

Is there any way that I can do the same with toolset?

Thank you!

#1213181

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you can build the form using Toolset Forms plugin.
=> https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/

For that, you need to create post type that store the "Contact Us" entries submitted from front-end. For example, Create post type "Contacts" and then try to create the form that creates a new entry for this post type and you will be able to set up email notification:
=> https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/