Title: External code in a field
Last modified: July 9, 2019

---

# External code in a field

 *  Resolved [lowthian](https://wordpress.org/support/users/lowthian/)
 * (@lowthian)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/external-code-in-a-field/)
 * Greetings, sorry if this has been covered, I did search but didn’t quite know
   terms. I am trying to add a custom field for fundrasing campaigns. My client 
   uses a third party system that provides an embed code for the forms. The third
   party system offers either a script, or an iframe. I have tried various types
   of custom fields with both, but when I use it for the code it either errors, 
   or in the case of the script I get the “noscript” message: “Fill out my LGL Form.”
   What is the best way to create a custom field to add either <scritp… or <iframe…
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexternal-code-in-a-field%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [6 years, 10 months ago](https://wordpress.org/support/topic/external-code-in-a-field/#post-11715036)
 * Not an issue directly related to CPTUI itself, but it does at least sound like
   possibly either not all of the markup is saving to your field, or it’s getting
   removed somehow before it gets displayed.
 * Typically for script/iframe based stuff, I prefer using a shortcode or some sort
   of theme edit to make sure all the parts get added/rendered more appropriately.
   However, I don’t now how deft you may be with coding solutions vs saving to a
   textarea.
 *  Thread Starter [lowthian](https://wordpress.org/support/users/lowthian/)
 * (@lowthian)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/external-code-in-a-field/#post-11718541)
 * Thanks Michael, I think I found a workaround even though it will be a bit more
   work for my client, using html to shortcode plugin.
    -  This reply was modified 6 years, 10 months ago by [lowthian](https://wordpress.org/support/users/lowthian/).
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [6 years, 10 months ago](https://wordpress.org/support/topic/external-code-in-a-field/#post-11718958)
 * Sounds good, thanks for the followup [@lowthian](https://wordpress.org/support/users/lowthian/)

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

The topic ‘External code in a field’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/external-code-in-a-field/#post-11718958)
 * Status: resolved