Contact form in listing sidebar
I am trying to use the JetPeck Contact form in the sidebar for single listings.
The form displays perfectly. when i add this code into a sidebar text/html widget:
[contact-form subject="Listing inquiry" to="$email"] [contact-field label="Name" type="name" required="true" /] [contact-field label="Email" type="email" required="true" /] [contact-field label="Subject" type="text" /] [contact-field label="Comment" type="textarea" required="true" /] [/contact-form]
** The problem I'm having is i'd like the to be sent to the listing author. It currently sends to the email set in
WP>DAshboard>Settings>General>Email
I think I need to change:
[contact-form subject="Listing inquiry" to="
$email"] [contact-field label="Name" type="name" required="true" /] [contact-field label="Email" type="email" required="true" /] [contact-field label="Subject" type="text" /] [contact-field label="Comment" type="textarea" required="true" /] [/contact-form]
Ideas?