Dynamic email address based on custom field
-
Hi,
I have a CPT named Shops. Each shop has a custom field with its own email address (Toolset custom field).
On each shop page there’s a CF7 form, the same for all the shops. Is it possible to make it so that the form request is sent directly to that address?As suggested here: https://wordpress.org/support/topic/get-to-email-based-on-custom-field/
I’ve inserted this [hidden custom_email default:post_meta “custom-email”] in the form and this [custom_email] in the “To” email field, but this one returns the error “invalid syntax”.
When I try sending a request, the form returns an error and doesn’t send anything.
What am I doing wrong or missing here?My custom field name is: custom-email
Thank you very much for your help
The topic ‘Dynamic email address based on custom field’ is closed to new replies.