Hello. Thank you for contacting the Toolset support.
The thing is that, 'marque' is the taxonomy not a custom field.
You can display the taxonomy in notification subject as given under:
[wpv-post-taxonomy type="marque" format="name" item='%%POST_ID%%']
To display the parent post title, we have a placeholder %%POST_PARENT_TITLE%% but somehow its not working at the moment I will require to check with clean install and if I see not working I will escalate this to our Devs.
So, to display the parent title, I've created the following custom placeholder: %%CUSTOM_PARENT_TITLE%%
I've added the following code to "Custom Code" section of Toolset:
=> hidden link
add_filter('cred_subject_notification_codes', 'func_set_parent_post_title', 9, 1);
add_filter('cred_body_notification_codes', 'func_set_parent_post_title', 9, 1);
function func_set_parent_post_title( $defaultPlaceHolders ) {
$parent_id = $_POST['@service-enquiry_parent'];
$parent_Title = get_the_title($parent_id);
$newPlaceHolders = array(
'%%CUSTOM_PARENT_TITLE%%' => $parent_Title
);
return array_merge($defaultPlaceHolders, $newPlaceHolders );
}
Now, subject line for Admin notification looks as given under:
[iAutoUK] New Request A Booking enquiry from [types field='enquiry-first-name' item='%%POST_ID%%'][/types] [types field='enquiry-last-name' item='%%POST_ID%%'][/types] [wpv-post-taxonomy type="marque" format="name" item='%%POST_ID%%'] %%CUSTOM_PARENT_TITLE%%
More info:
=> https://toolset.com/documentation/programmer-reference/forms/how-to-use-custom-placeholders-in-cred-notifications/
Now, I can see both marque and parent post title is displayed with the subject line, you can modify the subject line if require as per your requirement.