WordPress.org

Support

Support » Plugins and Hacks » Hana Flv Player » [Resolved] do_shortcode not working

[Resolved] do_shortcode not working

  • I’m trying to add the player on a template file by using something like the following:

    <?php echo do_shortcode(‘[hana-flv-player video=”http://myvideo.flv” description=”aaaaa” /]’);

    However no video is loaded. All I’m getting is a printout like
    [hana-flv-player video=”http://myvideo.flv” description=”aaaaa” /]

    If I put the shortcode in the page editor, the video loads fine.

    http://wordpress.org/extend/plugins/hana-flv-player/

Viewing 1 replies (of 1 total)
  • Plugin Author HanaDaddy

    @nurungji

    Sorry , my plugin was not implemented using the default WordPress shortcode functions.

    Rather, you need to use hana_flv_player_template_call

    <?php
    if (function_exists('hana_flv_player_template_call')){
        $hana_arg="
    video='http://localhost/wp/wp-content/plugins/hana-flv-player/babyhana.flv'
    player='2'
    width='180'
    height='150'
    ";
        echo hana_flv_player_template_call($hana_arg);
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] do_shortcode not working’ is closed to new replies.
Skip to toolbar