Title: Update Error in iframe insert
Last modified: July 13, 2018

---

# Update Error in iframe insert

 *  Resolved [gndesign](https://wordpress.org/support/users/gndesign/)
 * (@gndesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/update-error-in-iframe-insert/)
 * I have successfully converted most of my php insert tags to snippets, per the
   new update. However, when inserting the new snippet in an iframe, it is outputting
   the actual text, rather than the php code.
 * Below is how I successfully ran the code prior to the update:
 * `<iframe class="post-iframe" src="[insert_php]the_field('art-map'); [/insert_php]"
   width="420" height="350"></iframe>`
 * Below is how I am currently trying to run the snippet:
    `<iframe class="post-
   iframe" src="[wbcr_php_snippet id="2812"]" width="420" height="350"></iframe>`
 * If I try to run the HTML in the snippet, I am unsure what to input for the actual
   src element. Any advise would be greatly appreciated! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [webcraftic](https://wordpress.org/support/users/webcraftic/)
 * (@webcraftic)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/update-error-in-iframe-insert/#post-10491081)
 * Hi,
 * Insert your HTML code into the snippet. An example of a solution to this problem
   
   [https://wordpress.org/support/topic/doesnt-work-when-appended-to-a-form-url/](https://wordpress.org/support/topic/doesnt-work-when-appended-to-a-form-url/)
 * `echo '<iframe class="post-iframe" src="'.the_field('art-map').'" width="420"
   height="350"></iframe>';`
 * Best regards, Alex
    -  This reply was modified 7 years, 11 months ago by [webcraftic](https://wordpress.org/support/users/webcraftic/).
 *  Thread Starter [gndesign](https://wordpress.org/support/users/gndesign/)
 * (@gndesign)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/update-error-in-iframe-insert/#post-10492192)
 * Hi Alex,
    Thank you for your quick reply! Although I wasn’t able to solve the
   problem using the provided echo statement, I was able to tweak it a bit to get
   it working. This is the working snippet:
 * `?><iframe class="post-iframe" src="<?php the_field('art-map');?>" width="420"
   height="350"></iframe>`

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Update Error in iframe insert’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [snippet](https://wordpress.org/support/topic-tag/snippet/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 2 replies
 * 2 participants
 * Last reply from: [gndesign](https://wordpress.org/support/users/gndesign/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/update-error-in-iframe-insert/#post-10492192)
 * Status: resolved