Title: how embed shortcode in a iframe
Last modified: August 24, 2016

---

# how embed shortcode in a iframe

 *  Resolved [italsat](https://wordpress.org/support/users/italsat/)
 * (@italsat)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/)
 * hi, i have your pro version , i have create a post with your shortcode and work
   ok but i need to view this ifram on top where now is black :
 * [http://tv.latina.biz/2015/05/07/cielo-streaming-diretta-online/](http://tv.latina.biz/2015/05/07/cielo-streaming-diretta-online/)
 * in the top black part if i insert a youtube iframe work ok but if i insert your
   shortcode not work . Have a solution for this case ?
 * i have search how insert a shortcode in a iframe but not have resolved the problem.
 * Await your best support , thanks paul.
 * [https://wordpress.org/plugins/advanced-iframe/](https://wordpress.org/plugins/advanced-iframe/)

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

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106875)
 * Seems the shortcode is not evaluated. Have you enabled the plugin?
    Have you 
   tried another plugin with a shortcode there?
 *  Thread Starter [italsat](https://wordpress.org/support/users/italsat/)
 * (@italsat)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106883)
 * the shortcode work ok down at the page , up at the page where is color black ,
   work only iframe code and embed code or object code.
    Can i use your plugin in
   others code ( no shortcode ) ?
 * up page is a Custom Fields called “videoembed” , i can insert a youtube iframe
   and work ok but if i insert your shortcode not work.
    Your shortcode work ok 
   in the post at the down , you can view the live streaming of Cielo TV make by
   your shortcode.
 * I need to have the streaming now on down of the page, at the up of the page where
   black colour.
 * Await your comment , thanks paul
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106884)
 * If the custom field videoembed does not evaluate shortcodes you have a problem
   here. The plugin can also be used standalone. But than you need to be able to
   insert php. And I think you cannot insert this there either.
    But why do you 
   need to use the custom field there? If this is part of the template you can insert
   this to the template with do_shortcode(). See [https://codex.wordpress.org/Function_Reference/do_shortcode](https://codex.wordpress.org/Function_Reference/do_shortcode)
 * Best, Michael
 *  Thread Starter [italsat](https://wordpress.org/support/users/italsat/)
 * (@italsat)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106895)
 * i need to make a lot of posts with many streaming channels , who i can insert
   do_shortcode() in single.php when every post have a different shortcode?
    yes
   the custom fields not accept the shortcode , have you idea how do it ?
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106897)
 * You would have to modify the template where the custom field is printed. There
   you can than call do_shortcode().
    I actually do support this in my src field
   as well. Therefore this should normally work. During my parsing I simply do $
   str_input = do_shortcode($str_input);
 * so in your case something like
    echo do_shortcode($videoembed);
 * Best, Michael
 *  Thread Starter [italsat](https://wordpress.org/support/users/italsat/)
 * (@italsat)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106907)
 * i have insert the string thst you write but not work , take a look if is good
   where i have insert the string :
    <?php echo do_shortcode($videoembed); ?>
 * there is the code of the part back in single.php :
 * <?php get_header(); ?>
 *  <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div id=”thevideo”
   > <div id=”thevideoinside”> <div id=”videoembed”> <?php $key=”videoembed”; echo
   stripslashes(get_post_meta($post->ID, $key, true)); ?> <?php echo do_shortcode(
   $videoembed); ?> </div> </div> </div>
 * await your comment,thanks paul
 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106908)
 * My code was only an example. I don’t know how your variables are called.
 * So looks like you have to change
    stripslashes(get_post_meta($post->ID, $key,
   true)); to do_shortcode(tripslashes(get_post_meta($post->ID, $key, true)));
 * Best, Michael
 *  Thread Starter [italsat](https://wordpress.org/support/users/italsat/)
 * (@italsat)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106938)
 * now work ok , many thanks , very very great plugin.

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

The topic ‘how embed shortcode in a iframe’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

## Tags

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

 * 8 replies
 * 2 participants
 * Last reply from: [italsat](https://wordpress.org/support/users/italsat/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/how-embed-shortcode-in-a-iframe/#post-6106938)
 * Status: resolved