# Embedded Form Showing Form Code on Live/Preview Page

**URL:** <https://community.hubspot.com/t/embedded-form-showing-form-code-on-live-preview-page/21167>\
**Category:** Lead Capture Tools\
**Created:** [May 26, 2020, 2:56pm UTC](https://community.hubspot.com/t/embedded-form-showing-form-code-on-live-preview-page/21167 "2020-05-26T14:56:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mk8/32/57633_2.png) [@mk8](https://community.hubspot.com/u/mk8)\
**Post date:** [May 26, 2020, 2:56pm UTC](https://community.hubspot.com/t/embedded-form-showing-form-code-on-live-preview-page/21167/1 "2020-05-26T14:56:20Z")

</div>

Trying to embed a form on a wordpress site. When page is previewed, the portal ID and Form ID show up on the page. Has anyone found a fix for this?

 ![27303iD68B0EEE878138E7.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/0/c0c63e4d822c596c2e2aa66f192917be974f9799.png)

---

<div class="post-metadata">

**Author:** ![mikedupuy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mikedupuy/32/78789_2.png) [@mikedupuy](https://community.hubspot.com/u/mikedupuy)\
**Post date:** [May 27, 2020, 1:51am UTC](https://community.hubspot.com/t/embedded-form-showing-form-code-on-live-preview-page/21167/2 "2020-05-27T01:51:22Z")

</div>

Hi @mk8!

If you’re able to share the link to the page that’s causing the issue, I’d be happy to take a look and see what might be causing the issue. At first glance, a couple of thoughts:

1. If you’re using WordPress, you may want to check out the HubSpot plugin for WordPress. Once installed, you should be able to add a form to a page using simple shortcode.

2. Based on the screenshot, it looks like the form embed code may not be properly placed within the HTML on your site. Can you try opening your WordPress site’s HTML editor and repasting the form code within \<div\> PASTE THE EXPORT CODE HERE \</div\> tags and see if that fixes it?

mike | [2175group.com](https://www.2175group.com)

![16x16_smiley-happy.png.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/22d5e40d253def47f5f4ea7f0e3e70be19010689.png)  
Did this post help solve your problem? If so, please mark it as a solution.
