Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form showing shortcode text instead of fields: how to fix it

CNV-022High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A shortcode is a short piece of text in square brackets, such as [contact-form-7 id="123"], that a content system swaps for real content (here, a form) when the page loads. A template tag is similar, for example {{ form }} or {% form 'contact' %}. If the swap does not happen, visitors see the raw text instead of fields.

Where the visitor's path breaks
  1. Ad or link clickVisitor lands on the page
  2. Page loadsText appears, no error
  3. Form rendersRaw [shortcode] text shown instead
  4. Form submittedNothing to fill in
  5. Lead in CRMNever arrives

The shortcode is never turned into a form, so every later step is lost.

Why it costs you leads or sales

Leads per week before and after the shortcode brokeExample numbers
Leads per week before and after the shortcode broke (example)Week before: 24 leads; Broken week: 0 leads; After fix: 23 leads091824023Week beforeBroken weekAfter fixleads

Example: illustrative numbers for a page with steady traffic. Traffic stays the same, submissions stop.

How to check if your site has it

Quick checks
  • Open the live page in a private window (not the editor preview) and look for square brackets or curly braces where the form should be.
  • Check on mobile and desktop, since some builders use separate layouts.
  • Use View Source and search for the shortcode name, such as contact-form-7 or wpforms.
  • Confirm the form plugin is active and the form ID still exists.
  • Check pages built from templates, popups and footers, not just the main landing page.

How to fix it

Common causes and fixes
CauseSignFix
Plugin deactivated or removedShortcode shows as text everywhereReactivate the form plugin
Wrong block or widgetOnly one page affectedMove it into a Shortcode block or widget
Wrong or deleted IDPlugin shows an error or nothingCopy the current shortcode from the form plugin
Smart quotes or pasted formattingBrackets look right but text printsRetype the shortcode as plain text
Unsupported template syntax{{ }} or {% %} printedUse the platform's own form embed
Fix by platform
  1. Activate the form plugin

    Go to Plugins > Installed Plugins and make sure your form plugin (Contact Form 7, WPForms, Gravity Forms and so on) is active and updated.

  2. Use a Shortcode block

    In the block editor, add a Shortcode block and paste the code. A plain Paragraph or Code block will show it as text.

  3. Copy a fresh shortcode

    Open the form in its plugin screen, copy the shortcode shown there and paste it again as plain text to remove smart quotes.

  4. Check theme templates

    If the form sits in a theme file, call it with do_shortcode() instead of echoing the text.

Render a shortcode from a WordPress theme filephp
<?php echo do_shortcode( '[contact-form-7 id="123" title="Contact form"]' ); ?>
What visitors see

Broken

  • Text reads [contact-form-7 id="123"]
  • No fields or submit button
  • Visitors leave

Fixed

  • Name, email and message fields show
  • Submit button works
  • Lead reaches inbox and CRM

How to confirm it's fixed

Verify the fix
  1. Clear caches

    Purge your caching plugin, CDN and browser cache so you do not see an old copy.

  2. Reload the live page

    Use a private window and confirm fields appear with no brackets or braces.

  3. Submit a test lead

    Fill in the form and check the email and CRM entry arrive.

  4. Check mobile

    Repeat on a phone-sized screen.

How to prevent it happening again

Habits that stop a repeat
  • Test the live page after theme, plugin or builder updates.
  • Do not deactivate form plugins without checking which pages use them.
  • Keep a list of forms and the pages they sit on.
  • Avoid copying pages between tools without re-adding the form.
  • Use a staging site for major changes.
  • Monitor the page on a schedule so a break is caught within a day.

How FunnelGuard handles this

Questions people ask

Why is my contact form showing a shortcode instead of the form?

The shortcode was not processed. Usual causes are a deactivated form plugin, the shortcode placed in a block that does not run shortcodes, a wrong form ID, or a platform that does not support shortcodes. Fix the cause, clear caches and reload the live page.

Why is my Contact Form 7 shortcode showing as text?

Check that Contact Form 7 is active, the form ID still exists and the shortcode is in a Shortcode block, not a Paragraph or Code block. Retype the code as plain text to remove smart quotes if you pasted it from a document.

How do I make a shortcode render in WordPress?

Add a Shortcode block in the editor and paste the code. In theme files, use do_shortcode() with the shortcode string. The plugin that owns the shortcode must be active.

Why does my Shopify page show {{ }} or Liquid code as text?

Liquid only runs inside theme .liquid files, not in page body or rich text content. Use an app block in the theme editor or place the Liquid in a section file.

Do Wix, Webflow and Squarespace support shortcodes?

No. These builders do not process WordPress-style shortcodes. Use their native form element or paste the form provider's embed code into an Embed or Code block.

Why does the form show in the editor but not on the live page?

Previews can run extra logic or skip caching. On the live site, a cached page, a disabled plugin or an unpublished change can leave the raw text. Purge caches, publish and test in a private window.

How can I find out quickly if my form stops rendering?

Monitor the page automatically. FunnelGuard runs your journey on a schedule, flags when the form is not found and the shortcode text is visible, and sends one alert with a screenshot.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: form not found; text_absent for shortcode.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.