/ Published in: PHP
this is a simple script to take iframe parameters and build an iframe via a shortcode
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
add_shortcode('iframe', 'iframe'); function iframe($atts) { 'src' => "", 'width' => "800", 'height' => "600" ), $atts)); $iframe = '<iframe src="'.$src.'" width="'.$width.'" height="'.$height.'" scrolling="no" allowtransparency="yes" frameborder="0" ></iframe>'; return $iframe; }