Contact Form Update
Do you use a contact form on your site? If so, you’ll enjoy today’s update. Our [contact-form] shortcode has always been boring. It never had any configuration options and didn’t work in widgets. Today we’re giving the shortcode a makeover.
The old shortcode would send an e-mail message to the author of the post or page. Now you can send the message to any e-mail address you wish. You can even send to multiple e-mail addresses.
[contact-form to="you@me.com"]
[contact-form to="you@me.com,me@you.com,us@them.com"]
Maybe you never liked the [Blog Title] Post Title style subjects on the e-mail messages. Set your own default subject.
[contact-form subject="My Contact Form"]
You can even let the visitor set the subject by showing a subject field on the contact form.
[contact-form show_subject="yes"]
Use as many or as few of the options as you need. The old [contact-form] without any options will still work as it has in the past, but you now have the flexibility to do something like:
[contact-form to="mom@wordpress.com,dad@wordpress.com,billy@wordpress.com" show_subject="yes" subject="Contact WordPress Family"]
These changes allow us to improve the consistency of the built-in contact form from the following themes: Blix, Flower Power, MistyLook, and Sweet Blossoms. The contact page template in those four themes allowed your visitors to send you a message, but didn’t work in the same way as our shortcode. With today’s update, the contact page template in those themes will work just like using [contact-form] with any other theme.
For more details on how to use the contact form feature, head over to the Contact Form page on our Support site.
