1. Home
  2. Docs
  3. Shortcodes
  4. Contact Form Shortcode

Contact Form Shortcode

The Contact Form shortcode renders a basic contact form that can be added to any part of your website. The fields included are:

  • Full name (mandatory)
  • Phone (mandatory)
  • Email (mandatory)
  • Message (mandatory)

The shortcode has two important behaviours:

  • The shortcode is set up to send an email to the website’s admin email set in Settings->General, unless the to=”” attribute is set.
  • If you want to override the email all submissions go to, just add to=”youremail@youremail.com” to the shortcode.

Usage:

[​contact_form to=""]

Output:

Contact Form Example

There’s cases in which lots of spam submissions are sent through the contact form. If this is your case, we recommend to switch to a more specialized plugin like Contact Form 7 or a similar alternative.

Was this article helpful to you? Yes No

How can we help?