Title: Inserting external HTML/CGI in WordPress Page
Last modified: August 18, 2016

---

# Inserting external HTML/CGI in WordPress Page

 *  [packfan77](https://wordpress.org/support/users/packfan77/)
 * (@packfan77)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/inserting-external-htmlcgi-in-wordpress-page/)
 * I’ve been searching for this all night, maybe I’m not finding a solution because
   I don’t know exactly what I am looking for.
 * I am trying have a WordPress page that includes the body of an external html 
   that is generated by a CGI program (SFESurvey [http://www.tesol.net/scripts/SFESurvey/](http://www.tesol.net/scripts/SFESurvey/)).
   I know how to do this with Server Side Includes, and can call it with PHP on 
   a non-wp webpage. I also could do it with an iFrame (at least with a traditional
   HTML page) but that isn’t very pleasant. Can anyone point me to a plugin or a
   solution of some kind to allow me to do this. WP keeps stripping my code fragments,
   so I assume I need a plugin… but what?
 * Forgive me if this is a completely ignorant question. I’m new to wp, and this
   one part is really kicking my butt.
 * Thanks for your time.

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/inserting-external-htmlcgi-in-wordpress-page/#post-309311)
 * When you you want to make a WP page – you mean a Page, like described here:
    
   [http://codex.wordpress.org/Pages](http://codex.wordpress.org/Pages) ? If yes,
   think it this way: maybe it is better to create a Page template with all the 
   code you want in it and then create a new Page using that template. see also:
   [http://codex.wordpress.org/Pages#Page_Templates](http://codex.wordpress.org/Pages#Page_Templates)
 *  [interactive-bot](https://wordpress.org/support/users/interactive-bot/)
 * (@interactive-bot)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/inserting-external-htmlcgi-in-wordpress-page/#post-309313)
 * On wordpress 1.5, I had linked to my flickr photo feed, and now after upgrading
   to 2.0, I’m finding that the feed no longer works. I had originally inserted 
   the html code supplied by flickr and it worked fine until the upgrade. It seems
   that in 2.0, a major change has been made in how images are linked as the <img
   src> method I had always used doesnt work any more and I had to use the ‘blog
   this’ feature on flickr. Is it possible for me to re-enable this photo feed?
 * this is all that appears on the page now:
    [http://www.interactive-bot.com/wordpress/?page_id=20](http://www.interactive-bot.com/wordpress/?page_id=20)
 * code used:
    <!– Start of Flickr Badge –> <style> .zg_div {margin:0px 5px 5px 
   0px; width:117px;} .zg_div_inner { color:#666666; text-align:center; font-family:
   arial, helvetica; font-size:11px;} .zg_div a, .zg_div a:hover, .zg_div a:visited{
   color:#3993ff; background:inherit !important; text-decoration:none !important;}
   </style><script type=”text/javascript”> zg_insert_badge = function() { var zg_bg_color
   = ‘ffffff’; var zgi_url = ‘[http://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color=’+zg_bg_color+’&amp;amp;amp;zg_person_id=59372405%40N00&#8217](http://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color=’+zg_bg_color+’&amp;amp;amp;zg_person_id=59372405%40N00&#8217);;
   document.write(‘<iframe style=”background-color:#’+zg_bg_color+’; border-color:#’
   +zg_bg_color+’; border:none;” width=”113″ height=”151″ frameborder=”0″ scrolling
   =”no” src=”‘+zgi_url+'” mce_src=”‘+zgi_url+'” title=”Flickr Badge”></iframe>’);
   if (document.getElementById) document.write(‘ <div id=”zg_whatlink”>[what is this?< \/a>< \/div>’); } zg_toggleWhat = function() { document.getElementById(‘zg_whatdiv’).style.display = (document.getElementById(‘zg_whatdiv’).style.display != ‘none’) ? ‘none’ : ‘block’; document.getElementById(‘zg_whatlink’).style.display = (document.getElementById(‘zg_whatdiv’).style.display != ‘none’) ? ‘none’ : ‘block’; return false; } ](http://www.flickr.com/badge_new.gne)
   </div> </script> <div class=”zg_div”> <div class=”zg_div_inner”>[http://www.<strong style=”color: #3993ff”>flick<span style=”color: #ff1c92″>r</span>.com](http://www.flickr.com)
   <script type=”text/javascript”>zg_insert_badge();</script>
 * <div id=”zg_whatdiv”>This is a Flickr badge showing public photos from [interactive_bot](http://www.flickr.com/photos/59372405@N00).
   Make your own badge [here](http://www.flickr.com/badge_new.gne).</div>
    <script
   type=”text/javascript”>if (document.getElementById) document.getElementById(‘
   zg_whatdiv’).style.display = ‘none’;</script> </div> </div>
 * <!– End of Flickr Badge –>
 *  Thread Starter [packfan77](https://wordpress.org/support/users/packfan77/)
 * (@packfan77)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/inserting-external-htmlcgi-in-wordpress-page/#post-309406)
 * Thank you Moshu. I will try that and see if it works. Yes, I am referring to 
   a “Page” created in the WordPress program.

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

The topic ‘Inserting external HTML/CGI in WordPress Page’ is closed to new replies.

## Tags

 * [CGI](https://wordpress.org/support/topic-tag/cgi/)
 * [external](https://wordpress.org/support/topic-tag/external/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [packfan77](https://wordpress.org/support/users/packfan77/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/inserting-external-htmlcgi-in-wordpress-page/#post-309406)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
