Skip to content

App tutorials

2 min read

How to Embed a Gravity Form in WordPress, With or Without Shortcodes

By Justin Pot · June 13, 2019
embed-gravity-forms-shortcode primary img

So you're looking to embed Gravity Forms on your WordPress website, but don't quite understand how. You know you need a shortcode, but what is that, where do you find it, and what do you do with it?

Here, we'll explain what a shortcode is, how to find and use the Gravity Forms shortcode, and how to avoid needing a shortcode entirely.

How to Embed Using the Gravity Forms Shortcode

The quickest way to embed forms is using the Gravity Forms shortcode. A shortcode is a bit of code, in square brackets, used by WordPress plugins to insert things in posts or pages.

Until recently, shortcodes were pasted on their own line in the classic editor. It was kind of confusing, but it worked. In WordPress 5 and later, the Gutenberg editor offers dedicated shortcode blocks.

To get started, open the page you want to add the Gravity Forms shortcode to, then click the + icon to insert a new block.

Add a new block in WordPress

Search for and select Shortcode.

Shortcode block in WordPress

Now you can paste or type out your Gravity Forms shortcode. Here it is:

[gravityform id="1"]

Gravity Forms shortcode

Use that right now and the Gravity Form with the ID number 1 will show up on that post or page. Change the number to change the form used on the page. You can find the ID numbers for your forms in the Gravity Forms page of your WordPress backend.

Finding the ID number for your Gravity Forms shortcode

There are a few options you can add to the shortcode in order to customize how it looks on your page.

  • Add title="false" and your form's title will no longer show up in the post or page.

  • Add description="false" and your form's description will no longer show up in the post or page.

You can put these options after the ID number but inside the square brackets to disable both the title and the description. Like this:

[gravityform id="1" title="false" description="false"]

There are a few other, more complex options, which you can read about here.

How to Embed Gravity Forms Without a Shortcode

If keeping track of shortcodes doesn't seem fun to you, don't worry: You can use a dedicated Gravity Form block instead, which also lets you preview your forms in the WordPress editor. The only downside is you'll have to download and install the Gravity Forms Gutenberg Add-On. You'll find it on the Gravity Forms download page.

Once the plugin is installed, you can quickly add a Gravity Forms block to any WordPress post or page.

Gravity Forms embed using a block

You can choose which form to embed using a dropdown menu, meaning there's no form ID to look up.

Gravity Forms embed options

And the form will show up in the editor itself, allowing you to see it in context without having to open a preview page.

Gravity Forms embed in the editor

It's easier to keep track of than Gravity Forms shortcodes, so download the plugin if you're tired of doing things manually.

Connect Gravity Forms to Thousands of Other Apps

You're setting up Gravity Forms to gather information from people who visit your website, but what are you going to do with that information? With Zapier, you can send form entries to thousands of other apps, automatically, saving you from having to copy that information yourself.

Create rows in Google Sheets for new Gravity Forms submissions

  • Gravity Forms logo
  • Google Sheets logo
Gravity Forms + Google Sheets
More details
    Need to save your Gravity Forms submissions to a Google Sheets spreadsheet so you can easily share results with teammates and other collaborators outside of Gravity Forms? This Gravity Forms-Google Sheets integration makes it easy to do just that, automatically.

    Send new Gravity Form leads to Mailchimp

    • Gravity Forms logo
    • Mailchimp logo
    Gravity Forms + Mailchimp
    More details
      Gravity Forms is one of the best form software plugins for WordPress. It makes it a breeze to put a form on your WordPress site to collect info from site visitors. Often times you want to collect a visitors email address for follow up later. This Gravity Forms Mailchimp integration makes it easy to automatically add leads from Gravity Forms to a Mailchimp list.

      Create Salesforce leads with new Gravity Forms submissions

      • Gravity Forms logo
      • Salesforce logo
      Gravity Forms + Salesforce
      More details
        If you use Gravity Forms as a lead generation tool, this integration is for you. Easily take those leads filling out your Gravity Forms forms and turn them automatically into Salesforce leads.

        Create Google Calendar events from new Gravity Forms submission

        • Gravity Forms logo
        • Google Calendar logo
        Gravity Forms + Google Calendar
        More details
          Need a simple way to connect form entries to your calendar without having to do the tedious work yourself? Zapier will automatically create a new Google Calendar detailed event for every new submission in Gravity Forms.

          These are just a few examples—check out our Gravity Forms integrations page to learn more.

          Get productivity tips delivered straight to your inbox

          We’ll email you 1-3 times per week—and never share your information.

          Related articles

          Improve your productivity automatically. Use Zapier to get your apps working together.

          A Zap with the trigger 'When I get a new lead from Facebook,' and the action 'Notify my team in Slack'