Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author mdempfle

    (@mdempfle)

    Seems the shortcode is not evaluated. Have you enabled the plugin?
    Have you tried another plugin with a shortcode there?

    Thread Starter italsat

    (@italsat)

    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

    (@mdempfle)

    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.ww.wp.xz.cn/Function_Reference/do_shortcode

    Best, Michael

    Thread Starter italsat

    (@italsat)

    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

    (@mdempfle)

    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

    (@italsat)

    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

    (@mdempfle)

    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

    (@italsat)

    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.