Sidebar Contact Form + Custon field
Hi,
I created a new custom field, a Email field, and i would like the sidebar contact form send the enquiry to both emails, is possible?
I try some codes that i found on the forum but none worked.
There is some code that sends the email to the custom field email? cp_email
Thats the code
$mailto = get_the_author_meta( 'user_email', $post->post_author );
I try something like this
$mailto = get_post_meta($postID, 'cp_email', true);
else
$mailto = get_the_author_meta( 'user_email', $post->post_author );