• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty
Affordable VAST/VPAID for Wordpress has arrived. Serve ads with your videos starting today!
    • Docs
      • Installation
      • Changelog
    • FAQ
    • Support
      • Free Support
      • Pro Support
    • PRO

    Setting up Video Custom Fields

    Sometimes it’s necessary to showcase your video in some other part of the page than in the article content, or you just want your users to fill in the videos in a more structured way.

    First, activate the function Enable profile videos in Settings > FV Player > Setup tab > Integrations/Compatibility. Then use this code in your theme’s functions.php file to add a new “Film Videos” box with meta key “film_videos” to all of your posts (not pages though):

    /**
     * FV Player Video Custom Fields
     */
    if( class_exists('FV_Player_MetaBox') ) {
      new FV_Player_MetaBox( array(
          'name' => 'Film Videos',
          'meta_key' => 'film_videos',
          'post_type' => 'post',
          'display' => true,
          'multiple' => true,
          'labels' => array(
            'edit' => 'Edit Video',
            'remove' => 'Remove Video'
          )
        )
      );
    }

    The videos will appear automatically at the end of the post.

    Then you get a new meta box on the post editing screen – it lets you insert new videos and also shows a preview of the video that is stored.

    Block Editor
    Classic Editor

    You can also omit the “display” parameter to get more control over how the videos are displayed:

    if( class_exists('FV_Player_MetaBox') ) {
      new FV_Player_MetaBox( array(
          'name' => 'Film Videos',
          'meta_key' => 'film_videos',
          'post_type' => 'post'
        )
      );
    }

    Then you can use this PHP code to show these videos in your post template:

    if( class_exists('FV_Player_Custom_Videos') ) {
      global $post;
      $objVideos = new FV_Player_Custom_Videos( array('id' => $post->ID, 'meta' => 'film_videos', 'type' => 'post' ) );
      $objVideos->get_form();
      if( $objVideos->have_videos() ) {
        foreach( $objVideos->get_videos() AS $video ) {
          echo do_shortcode($video);
        }
      }
    }

    Please note that in the arguments passed to contructor of FV_Player_Custom_Videos the “type” field doesn’t refer to the “post_type”, but switches between using post meta and user meta.

    Primary Sidebar

    For Developers

    1. Why FV Player?
    2. FAQ
    3. Creating and Managing Playlists
    4. Advanced features
    5. Video Security
    6. Troubleshooting
    7. Tools
    8. Analytics
    9. Audio Player
    10. Live Streaming
    11. Download | Buy
    12. Getting Started
    13. Licensing and Account
    14. Setting Screens
    15. Video Hosting
    16. Video Membership, Pay Per View and eLearning
    17. Video Advertising
    18. FV Player VAST/VPAID
    19. Casting Options
    20. For Developers
      1. FV Player 8 Changes
      2. FV Player Database
      3. Lightbox Customizations
      4. List of Shortcode Parameters
      5. Video Custom Fields
      6. AMP
      7. Minify Plugins
      8. API | Programmer's Guide
      9. JavaScript Guide
      10. Dynamic Content Loading
      11. Video Position Saving
      12. Changelog
      13. How to add your own URL token signing mechanism
      14. How to change FV Player Translations and Labels
    21. FV Player Demos
    22. Additional Services
    23. Legal

    Footer

    Our Plugins

    • FV WordPress Flowplayer
    • FV Thoughtful Comments
    • FV Simpler SEO
    • FV Antispam
    • FV Gravatar Cache
    • FV Testimonials

    Free Tools

    • Pandoc Online
    • Article spinner
    • WordPress Password Finder
    • Delete LinkedIn Account
    • Responsive Design Calculator
    Foliovision logo
    All materials © 2026 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
    • This Site Uses Cookies
    • Privacy Policy
    • Terms of Service
    • Site Map
    • Contact
    • Tel. ‭+421 2/5292 0086‬