Title: [Plugin: FLV Embed] do_shortcode PHP not working properly
Last modified: August 20, 2016

---

# [Plugin: FLV Embed] do_shortcode PHP not working properly

 *  [Luke Mlsna](https://wordpress.org/support/users/bitacre/)
 * (@bitacre)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-flv-embed-do_shortcode-php-not-working-properly/)
 * This is a great plugin, my favorite flv embedding tool, but I have found one 
   problem: the shortcode cannot be called directly in PHP (for use in templates)
   using WP’s [do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)
   function.
 * For example, the code <?php echo do_shortcode( ‘[flv:/wp-content/uploads/2012/
   03/header.flv 720 480]’ ); ?> does not display a flash video, but simply outputs[
   flv:/wp-content/uploads/2012/03/header.flv 720 480] as text.
 * Perhaps this has something to do with the unusual shortcode structure of [flv:/
   url] rather than [flv url=”url”]? Or maybe I’m just doing it wrong.
 * [http://wordpress.org/extend/plugins/flv-embed/](http://wordpress.org/extend/plugins/flv-embed/)

Viewing 1 replies (of 1 total)

 *  [stanbdb](https://wordpress.org/support/users/stanbdb/)
 * (@stanbdb)
 * [14 years ago](https://wordpress.org/support/topic/plugin-flv-embed-do_shortcode-php-not-working-properly/#post-2648809)
 * Hi, i believe i found a workaround. Instead of using `<?php echo do_shortcode('[
   flv:/wp-content/uploads/2012/03/header.flv 720 480]' ); ?>` try using `<?php 
   echo flv_parse( '[flv:/wp-content/uploads/2012/03/header.flv 720 480]' ); ?>`
   
   flv_parse is a function defined in the plugin code. This solution has worked 
   for me. [This thread](http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/20472/wordpress-doshortcode-not-working)
   has led me to this solution. Take care, Stan

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: FLV Embed] do_shortcode PHP not working properly’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/flv-embed.svg)
 * [FLV Embed](https://wordpress.org/plugins/flv-embed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flv-embed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flv-embed/)
 * [Active Topics](https://wordpress.org/support/plugin/flv-embed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flv-embed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flv-embed/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [stanbdb](https://wordpress.org/support/users/stanbdb/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-flv-embed-do_shortcode-php-not-working-properly/#post-2648809)
 * Status: not resolved