Skip Navigation

[Resolved] retrieve post-name in CRED form notification

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted add the title of the page that his CRED form is on, to his notifications when the form is submitted.

Solution:
What you can do is to create a custom field to hold the title on the post cpt that will be created in CRED.

Then just add that field to the form and pass the post title into it like this.

[cred_field field='test' post='job' value='[wpv-post-title]' urlparam='' output='bootstrap']

See how i've passed the [wpv-post-title] shortcode into the field.

Then you can add this field to your notifications.

This support ticket is created 6 years, 9 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)

This topic contains 6 replies, has 2 voices.

Last updated by fabriceS 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#617832

Hello,

I'm trying to setup a notification after submitting a CRED Form.
Ainsi that notification, I would like to include the post name field of a page created with post-types.

In my real estate case, I would like to have in ly notification the name of the residence I came from in the notification automatically instead of the post-form-name...

how can I solve that ?

Many thanks,

Fabrice

#617942

Shane
Supporter

Languages: English (English )

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

Hi Fabrice,

Thank you for contacting our support forum.

I'm not sure what you are referring to but is it that you want to include the title of the post that is currently being created by CRED to be sent in the notification ?

Please let me know.

Thanks,
Shane

#617946

Hi Shane,

I created a CustomPost Type which is a list of real estate properties with a lot of details/properties.
I setup a layout in Toolset to display the content of this CPT as I want. Inside that layout I include a CRED form to receive informations about this specific property. So I would like to display the name of my CPT in the notification of my CRED form.
I hope it's more clear now 😉

#618017

Shane
Supporter

Languages: English (English )

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

Hi Fabrice,

I see what you mean.

So when the customer posts a comment on this Property you want the notification to say something like.

"Thank you for post on XYZ Property etc.."

Correct?

Please let me know.
Thanks,
Shane

#618021

Hi Shane

Yes, that’s correct.
When I retrieve the post title for now it display the post-form title instead of the post title

#618063

Shane
Supporter

Languages: English (English )

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

Hi Fabrice,

What you can do is to create a custom field to hold the title on the post cpt that will be created in CRED.

Then just add that field to the form and pass the post title into it like this.

		[cred_field field='test' post='job' value='[wpv-post-title]' urlparam='' output='bootstrap']

See how i've passed the [wpv-post-title] shortcode into the field.

Then you can add this field to your notifications.

Please let me know if this helps.
Thanks,
Shane

#618387

Thank you !