WordPress.org

Forums

Viper's Video Quicktags
Using Quicktags in Theme File (outside the loop) (7 posts)

  1. widecast
    Member
    Posted 4 years ago #

    Hello,

    I'm trying to use the FLV Quicktags in my theme file but cannot get the short codes to actually call the plugin and display the video.

    I've tried:

    [FLV]http://www.youtube.com/watch?v=ZeroJ1BK6GQ[/FLV]
    and
    <?php echo do_shortcode("[FLV]http://www.youtube.com/watch?v=ZeroJ1BK6GQ[/FLV]") ?>

    Both without luck.

    Any ideas?

    Thanks,

    Dave

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 4 years ago #

    Shortcodes raw in your theme obviously won't do anything. do_shortcode() alone is not enough.

    Try this:

    <?php echo apply_filters( 'the_content', '[foo]bar[/foo]' ); ?>

  3. galelgo.david
    Member
    Posted 4 years ago #

    To call the plugin outside the_content :

    //the string contains the viper's shortcodes.
    echo do_shortcode($String_to_apply_the_plugin);
    
    echo $VipersVideoQuicktags->SWFObjectCalls();
  4. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 4 years ago #

    That does the same thing as what I posted. ;)

  5. mmcomber
    Member
    Posted 4 years ago #

    Hi Alex,

    How can I use the above, but include the URL from a custom post field?

    get_post_meta($post->ID, 'youtubeid', true)

    Thanks and love your plug in!

  6. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 4 years ago #

  7. bizp
    Member
    Posted 4 years ago #

    Hi Alex,

    I am new to WordPress. I found your plugin while searching for some plugin to allow my front end users to post with videos. But I am not sure how to use this. I have installed this and activated also. I can see it at backend. But I want to create a menu item on my website and from the menu your plugin should open and allow the user to post along with videos. Please help me . Please provide step by step instruction how this. I am using "Arras" theme.

    Thanks in advance
    Biz

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Viper's Video Quicktags
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic