WordPress contact form

Formgong team ·

Paste this into WordPress. Posts go to Formgong. No database and no Resend.

250 free submissions a month

How forms work in WordPress

WordPress sites usually get forms from plugins such as Contact Form 7, WPForms or Elementor, which send email through the server's own mail setup. When that mail lands in spam or never leaves the host, you lose leads without noticing.

The Formgong plugin is the direct way: a block, a shortcode, and templates. You can still paste HTML into a Custom HTML block, or keep an Elementor Pro form and add Formgong as its webhook. On WordPress.com, form and script tags in a Custom HTML block need a paid plan with hosting features activated. On a self-hosted site, unfiltered HTML needs a role that has it. Administrators and editors have it on a single site.

Set it up in WordPress

  1. In WordPress open Plugins, Add New, search for "Formgong", click Install Now, then Activate. The directory page is https://wordpress.org/plugins/formgong/. If your site blocks the plugin directory, download https://formgong.com/downloads/formgong-wordpress.zip and upload it in Plugins, Add New, Upload Plugin.
  2. Paste the access key and click Send a test submission. That test does not finish the connect wizard. Leave the endpoint at https://formgong.com unless you host Formgong yourself.
  3. Add the Formgong block and pick a template, or use [formgong template="aula"]. The slug list is on the WordPress docs page.
  4. Custom HTML: paste the snippet, set _lang to the page language, and optionally _redirect to a thank-you page on your site.
  5. Elementor: in Formgong open Platforms, add Elementor, and copy the URL. In the form, add Webhook under Actions After Submit, paste the URL, and turn on Advanced Data.
  6. Publish and send a test from the live page. The hidden field _page_url records that page. Telegram is instant. On the Free plan, every submission is emailed too.

Step-by-step guide in the docs

WordPress
<form action="https://formgong.com/submit" method="POST">
  <input type="hidden" name="access_key" value="fk_your_access_key">
  <input type="hidden" name="_lang" value="en">
  <label>Name <input type="text" name="name" autocomplete="name" placeholder="Your name" required></label>
  <label>Email <input type="email" name="email" autocomplete="email" placeholder="you@example.com" required></label>
  <label>Message <textarea name="message" placeholder="How can we help?" required></textarea></label>
  <div aria-hidden="true" style="position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)">
  <label>Leave this field empty<input type="text" name="botcheck" tabindex="-1" autocomplete="off"></label>
</div>
  
  <button type="submit">Send</button>
</form>

Formgong or a form plugin?

A form plugin is fine when your host sends mail reliably and you want the entries inside WordPress.

Formgong helps when host mail is unreliable or you want Telegram. The plugin is one small plugin. Custom HTML needs no plugin at all.

Questions and answers

Why did WordPress remove my form code?

On WordPress.com, form and script tags need a paid plan with hosting features activated. On a self-hosted multisite network, only super admins can post unfiltered HTML.

Does it work with page builders?

Yes. Any builder with an HTML or code widget can hold the snippet, and Elementor Pro forms can send to Formgong through a webhook.

Do I need an SMTP plugin?

Not for this form. Formgong sends the email notifications itself, so the host's mail setup does not matter.

Why does the inbox show the site home?

A cross-origin post often sends only the site origin. The plugin adds _page_url for the current page. Formgong keeps it when the host matches.

The block does not appear.

Activate the Formgong plugin and reload the editor. The block name is Formgong form. The form itself renders on the published page.

Start free