Gravity Forms Post Content Merge Tags

1644756100 Gravity Forms Post Content Merge Tags
  • Description
  • FAQ
  • Screenshots
  • DEMO
  • Updates & Support

Use Gravity Forms merge tags directly in your WordPress post content. Now you can use a single confirmation page for multiple forms, better style and layout your confirmation pages, and generate persistent confirmation pages.

This plugin is part of Gravity Perks, a suite of 37+ essential Gravity Forms addons with support you can count on.

What does it do?

This plugin provides the ability to include Gravity Forms merge tags in your WordPress post content. The uses are endless but here are a few of the most common.

  • Reclaim complete control over the styling of the redirect page while maintaining the ability to use Gravity Forms merge tags in the content of the page.

  • Reuse the same confirmation page for multiple forms. For instance, you might have 25 forms on your site but would like to redirect users from all of those forms to a single, personalized “Thank You” page on submission.

  • Implement persistent confirmation pages. For example, you could send the user an email including the confirmation page URL to their form submission, which they could save for future reference.


  • All Gravity Forms Merge Tags supported.
    Works with all default Gravity Forms merge tags out of the box.
  • Merge Tag button on Post Editor.
    Awesome new Merge Tag Button right in the Post Editor toolbar to allow you to quickly insert the merge tags you want directly into your post content.
  • All Custom Post Types supported.
    Merge tags can be used with any post type.
  • Global Merge Tags.
    Use simplified global merge tags to match fields across multiple forms.
  • Handy [eid] shortcode.
    Display entry data anywhere shortcodes are supported.
  • Pretty Entry ID.
    Use {pretty_entry_id} to insert ID. A safe and pretty way to pass entry data.
  • Secure URLs.
    Confirmation page URLs are encrypted to protect your entry data.
  • Seamless, easy-to-use UI.
    Integrates directly with the Gravity Forms confirmation settings. Activate functionality with a single click.
  • Automatic updates.
    Get updates and latest features right in your dashboard.
  • Awesome support.
    We’re here to help! And we mean it.


  1. How do I enable this functionality?
  2. Feature Details
    1. Merge Tag Button
    2. Global Merge Tags
    3. The {encrypted_entry_id} Merge Tag
    4. The {confirmation_url} Merge Tag
    5. The {pretty_entry_id} Merge Tag
    6. The [eid] Shortcode
  3. Advanced Configuration
    1. Parsing Merge Tags for “Redirect” Confirmation Type
  4. Known Limitations
  5. Hooks

How do I enable this functionality?

After installing and activating Gravity Forms Post Content Merge Tags, you can enable Post Content Merge Tags in
Gravity Forms Confirmations. Let’s step through that process.

Navigate to the Confirmations page for any form. Select Page for the Confirmation Type setting and select your desired confirmation page from the “Page” setting.

Gravity Forms Post Content Merge Tags

Click on Enable Merge Tags in Page Content to enable merge tags for your selected confirmation page, then click the Save Confirmation button to save your confirmation.

Gravity Forms Post Content Merge Tags

Click Edit Page Content link that displays next to Enable Merge Tags in Page Content to edit your confirmation page.

1644756089 171 Gravity Forms Post Content Merge Tags

Select the Merge Tag Button to insert Gravity Forms merge tags into your post content.
You can use GF Post Content Merge Tags for the “Redirect” Confirmation Type as well; however, you will need to configure the URL manually.

Awesome! Now you’re ready to see it all in action. Go submit your form. When you’re redirected, you’ll notice that your encrypted entry ID has automatically been appended the redirect URL and all of the merge tags in your post content have been replaced with the entry data (which was just submitted).

1644756090 953 Gravity Forms Post Content Merge Tags

Feature Details

Merge Tag Button

1644756090 991 Gravity Forms Post Content Merge Tags
1644756090 449 Gravity Forms Post Content Merge Tags

When enabled, the Merge Tag Button will appear in the toolbar for the visual post content editor. To enable the Merge Tag Button, you must first activate Post Content Merge Tags for the post/page you for which you would like to insert merge tags. You can do this by selecting the page as the confirmation page for any form, enabling the Post Content Merge Tags setting, and then accessing the page via the Edit Page Content link that appears.

By default, a list of merge tags will appear specific to the form from which you accessed the Edit Page Content link. If you would like to add merge tags from other forms, select the View All Forms menu item. This will refresh the menu with a list of all forms. Select your desired form and the menu will be refreshed with a list of merge tags specific to the selected form.

Global Merge Tags

1644756090 362 Gravity Forms Post Content Merge Tags

By default, merge tags are field-specific. They are matched by the ID (i.e. {My Label:12}). Global merge tags allow merge tags to be matched based on the label. This means they can match fields from any form.

With global merge tags, you can use the same confirmation page for multiple forms while still including personalized information for the submitting user via Gravity Forms merge tags. Check out this article for more details.

The {encrypted_entry_id} Merge Tag

The {encrypted_entry_id} merge tag allows you to pass the entry ID to another location, without directly displaying the form’s entry ID.

Because of this merge tag, passing entry details over to other locations such as confirmation redirect destinations is a breeze. Simply passing the {encrypted_entry_id} tag within your confirmation settings allows you to dynamically pass the entry ID without the need for any custom configuration.

The {confirmation_url} Merge Tag

The {confirmation_url} merge tag allows you to output the confirmation URL that the user is sent to after submitting your form. By utilizing this merge tag, the confirmation URL is easily accessible at a later date, if needed.

The {pretty_entry_id} Merge Tag

Used in the same cases as {encrypted_entry_id}, the {pretty_entry_id} merge tag obfuscates the Entry ID for safety, but the resulting ID is shorter and readable than encryption.


  • Entry ID:
  • Encrypted Entry ID:
  • Pretty Entry ID:

To activate this feature, do the following.

  1. Go to the WordPress theme editor by selecting “Appearance” → “Editor”.
  2. Select functions.php from the list of files on the right.
  3. Paste the following line to the end of the opened file.
    add_filter( 'gppcmt_enable_pretty_id', '__return_true' );
  4. Save the file.

The [eid] Shortcode

Post Content Merge Tags relies on a special WordPress filter, the_content() that is applied to the post content before it is rendered.

You may want to use merge tags in content that is not processed through this filter. We’ve added the [eid] shortcode to help with these use-cases. Even if the content is not run through the content filter, it is very likely still parsed for shortcode.

In combination with the Shortcode Widget plugin, shortcodes can be placed within widget areas. Doing so will allow you to place Gravity Forms merge tags within sidebars of your site, or any other widget area available to you.

  • Basic Usage

    [eid]Hello, {Name (First)} {Name (Last)}[/eid]

    Simply wrap your merge tag content within the [eid] shortcode. The content will be parsed for merge tags when shortcodes are processed.

  • Field Attribute Usage

    Hello, [eid field="1.3" /]

    Don’t feel like writing out the full merge tag and you know the field ID? You can specify the field ID via the field attribute.

  • Tag Attribute Usage

    Hello, [eid tag="{Name (First)}" /]

    If you want your merge tag to be processed directly from within the shortcode, you can use the tag attribute.

  • Shortcode in HTML Attribute

    [eid]{Product Type}[/eid]

    WordPress no longer supports shortcodes within HTML attributes. Just include the full HTML tag (along with the merge tag) and the [eid] shortcode will handle the rest.

Advanced Configuration

Parsing Merge Tags for “Redirect” Confirmation Type

Post Content Merge Tags supports all post types out of the box; however, Gravity Forms does not support selecting a post from a custom post type via the Confirmation UI. To activate Post Content Merge Tags for other post types, select Redirect for Your Confirmation Type and append eid Parameter to the Query String.

1644756091 484 Gravity Forms Post Content Merge Tags

1644756091 270 Gravity Forms Post Content Merge Tags

The merge tag button makes inserting merge tags in your post content so much easier. To activate for custom post types, you will need to append a “form_id” parameter to the query string of the edit page with your desired form ID. Once the button has been activated for a post, it will always be available for that post.

Default Edit URL

Edit URL with “form_id” Parameter



Global Usage
Post Content Merge Tags will attempt to parse merge tags in any content filtered through the_content() filter. You can append an eid to any WordPress URL and the merge tags will be replaced where the_content() filter is applied.


Known Limitations

Merge Tags might not work when used on page built with a visual page builder plugin, in that case, you must use the [eid] shortcode.


Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.

Shopping Cart
  • Your cart is empty.
Scroll to Top