This page may contain affiliate links. Please read my disclaimer for more information.

Finding Your Gravity Forms Shortcode

  |  by Chris Eggleston

Symptoms

Are you trying to find the Gravity Forms shortcode so that you can embed your form?

Maybe you’re wondering how to generate or modify a form shortcode?

How To Fix It

The first thing you need to know is that there is no shortcode generator, and the shortcode is not displayed in the form editor.

However, if you click on the Embed button at the top of the editor, then at the bottom of the slideout, you will see a button to Copy Shortcode.

Once you have the shortcode, it is relatively easy to modify for your specific forms and use as needed.

Below is the basic shortcode; you can copy and use it on your site; you will need to change 1 to your forms ID number.

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

You can adjust the shortcode parameters as needed (optional):

  • id: Specify the form ID.
  • title: Display form title (true/false).
  • description: Display form description (true/false).
  • ajax: Enable AJAX (true/false).

If you need additional information about modifying and using the shortcode please check this doc: Creating a Form Shortcode.

Adding Gravity Forms Shortcode to a Page

Once you have your shortcode, you can simply paste it into the WordPress classic editor, and the form will display on the front end.

If you use the default WordPress block editor, you do not need to use the shortcode. Instead, you can use the Form block.

If you are using a page builder like those listed below, you will need your shortcode. To help with that, I have prepared an article on how to embed the Gravity Forms shortcode for each of these page builders below:

For a more comprehensive guide for using the Gravity Forms shortcode, please refer to the resource here: Creating a Form Shortcode.

Need More Help?

If you still need help, feel free to use the comments or chat options below.

If you have an active Gravity Forms license, you can also open a support ticket here.

Frequently Asked Questions

How can I include a Gravity Form in my WordPress page or post?

To include a Gravity Form in your WordPress content, use the form shortcode, which looks like this:

[gravityform id="1"]

Replace “1” with your form’s actual ID. You can insert this shortcode directly into the WordPress editor for pages or posts.

What options are available for customizing the Gravity Form shortcode?

You can customize your Gravity Form shortcode by adding additional parameters, such as title, description, ajax, and tabindex. For example: 

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

These options allow you to hide titles and descriptions or enable AJAX to submit the form without page refresh.

Can I insert a Gravity Form into my WordPress template using PHP?

Yes, to insert a Gravity Form using PHP, use the gravity_form() function in your template files. Provide it with the necessary parameters like form ID, display title, display description, etc., like so:

<?php gravity_form(1, false, false); ?>

What is the method to hide the form title using the Gravity Forms shortcode?

To hide the form title when using your shortcode, set the title parameter to “false” like this: 

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

Are there shortcodes for displaying a list of entries from Gravity Forms?

While Gravity Forms does not have a built-in shortcode for listing entries on the front end, there are add-ons and plugins that extend its functionality to allow displaying entries through shortcodes or widgets.

Photo of author
About the Author
Chris Eggleston
I’m not just a Gravity Forms enthusiast; I’m a dedicated father and loving husband. As the owner of WP Mantis & Marketing Draft, I’m on a mission to simplify the WordPress experience for site owners. I try to bring a unique perspective to the Gravity Forms community.

Support Chris - Donate $5

Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments