WordPress.org

Ready to get started?Download WordPress

Forums

Hana Flv Player
[resolved] do_shortcode not working (2 posts)

  1. achillesp
    Member
    Posted 1 year ago #

    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/

  2. HanaDaddy
    Member
    Plugin Author

    Posted 1 year ago #

    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);
    }
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.