Title: [Plugin: Viper&#039;s Video Quicktags] Custom fields
Last modified: August 19, 2016

---

# [Plugin: Viper's Video Quicktags] Custom fields

 *  Resolved [fii.digital](https://wordpress.org/support/users/noidoi/)
 * (@noidoi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/)
 * Hi,
 * I have trouble with using the plugin with custom fields.
    I’ve searched the forum,
   i found only one question about this. [http://wordpress.org/support/topic/can-you-make-vipers-video-quicktags-to-work-with-a-custom-field-too](http://wordpress.org/support/topic/can-you-make-vipers-video-quicktags-to-work-with-a-custom-field-too)
   but i don’t catch the ideea.
 * I want to have the video separated by the_content() – my design requires this.(
   like one box for video, one for content).
 * I want to be able to put in a custom field someway [flv]location[/flv]
    and show
   on page the video. Can you help me?
 * Thanks a lot!

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Thread Starter [fii.digital](https://wordpress.org/support/users/noidoi/)
 * (@noidoi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1920696)
 * this one works for me, but how can i put in there a custom field?
 * `<?php echo apply_filters( 'the_content', '[flv]location[/flv]' ); ?>`
 *  Plugin Contributor [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1920887)
 * [http://codex.wordpress.org/Custom_Fields](http://codex.wordpress.org/Custom_Fields)
   
   [http://codex.wordpress.org/Function_Reference/get_post_meta](http://codex.wordpress.org/Function_Reference/get_post_meta)
 * Put the URL in the custom field.
 *     ```
       <?php
       $videourl = get_post_meta( $post->ID, 'some_key', true );
       if ( $videourl )
       	echo apply_filters( 'the_content', "[flv]$videourl[/flv]" );
       ?>
       ```
   
 *  Thread Starter [fii.digital](https://wordpress.org/support/users/noidoi/)
 * (@noidoi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1920893)
 * thx a lot, man :).
 *  [irfanmansha](https://wordpress.org/support/users/irfanmansha/)
 * (@irfanmansha)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1920962)
 * Hi,
 * In my theme, i have a custom template file where i want to show youtube and daily
   motion video by the video URL. I have only raw URL nothing else.
 *  [kenada](https://wordpress.org/support/users/kenada/)
 * (@kenada)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1920981)
 * Why can’t I get this code to work in my theme? Here is my code,
 * > <div id=”video”>
   >  <div id=”video-inside”> <?php $videourl = get_post_meta( 
   > $post->ID, ‘video’, true ); if ( $videourl )echo apply_filters( ‘the_content’,“[
   > flv]$videourl[/flv]” ); ?> </div> </div>
 * But when I load the page if loads blank. Does this no longer work?
 *  [cailborg](https://wordpress.org/support/users/cailborg/)
 * (@cailborg)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1921003)
 * Replace the ” ” around [flv]$videourl[/flv] with ‘ ‘
 *  [scruff](https://wordpress.org/support/users/scruff/)
 * (@scruff)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1921005)
 * I am almost there – the video shows up in the right place but the URL isn’t quite
   right…
 * code used (as above but with vimeo tags instead):
 *     ```
       <?php
       $videourl = get_post_meta( $post->ID, 'video', true );
       if ( $videourl )
       	echo apply_filters( 'the_content', '[vimeo]$videourl[/vimeo]' );
       ?>
       ```
   
 * results on page:
 *     ```
       <span class="vvqbox vvqvimeo" style="width:635px;height:300px;"><iframe id="vvq-103-vimeo-1" src="http://player.vimeo.com/video/$videourl?title=1&byline=1&portrait=0&fullscreen=1" width="635" height="300" frameborder="0"><a href="http://www.vimeo.com/$videourl">http://www.vimeo.com/$videourl</a></iframe></span>
       ```
   
 * it seems to be the $videourl bit that is going wrong, but i’m afraid i don’t 
   know enough about PHP to figure out why!
 * WP version: 3.2.1
    example page: [http://www.braincubecorp.co.uk/eatme/media/video/this-is-the-title-of-a-video-post/](http://www.braincubecorp.co.uk/eatme/media/video/this-is-the-title-of-a-video-post/)
   video link: [http://vimeo.com/30391279](http://vimeo.com/30391279)
 *  [xave](https://wordpress.org/support/users/xave/)
 * (@xave)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1921006)
 * Hiya
 * The $videourl variable is being passed as a string.
    Try this:
 * <?php
    $videourl = get_post_meta( $post->ID, ‘video’, true ); if ( $videourl )
   echo apply_filters( ‘the_content’, ‘[vimeo]’ . $videourl . ‘[/vimeo]’ ); ?>
 *  [scruff](https://wordpress.org/support/users/scruff/)
 * (@scruff)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1921007)
 * xave, you are a star! works perfectly, thank you.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: Viper's Video Quicktags] Custom fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/vipers-video-quicktags.svg)
 * [Viper's Video Quicktags](https://wordpress.org/plugins/vipers-video-quicktags/)
 * [Support Threads](https://wordpress.org/support/plugin/vipers-video-quicktags/)
 * [Active Topics](https://wordpress.org/support/plugin/vipers-video-quicktags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/vipers-video-quicktags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/vipers-video-quicktags/reviews/)

 * 9 replies
 * 7 participants
 * Last reply from: [scruff](https://wordpress.org/support/users/scruff/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-vipers-video-quicktags-custom-fields/#post-1921007)
 * Status: resolved