• 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
  • 42 items in basket 42
    • Cart
    • Store

Shortcode – Use FV Player LearnDash with custom code

Foliovision › Forums › FV Player › How to … › Shortcode – Use FV Player LearnDash with custom code

  • Kendell 4 years ago

    Greetings,

    I’m excited to see FV player integrated with LearnDash Progress option!

    I was wondering, is it possible to use the shortcode as an option instead of selecting a video directly for the settings to allow video progression?

    Reason: I’ve developed a template and embedded the FV player to play a file from a custom field and would like to benefit from the progression feature. Can you advise on if this is possible at the moment?

    Thanks

    Regards,
    Kendell

Viewing 9 replies - 1 through 9 (of 9 total)
  • Mária Stašová 4 years ago
    Avatar photo

    Hello Kendell,

    thank you for the question! We are glad to see that the LearnDash integration helps so many of our users.

    Sadly, using just shortcodes will not work. However, you can continue using shortcodes if you add embed][/embed] infront of it. Like this:

    [embed][/embed][fvplayer id="1"]
    

    Let me know, if it works for you.

    Thanks,
    Maria

    Kendell 4 years ago

    Hello Maria,

    Thanks for your reply.

    I see the approach to the shortcode using the embed, but can it work with a sample shortcode that follows?

    ‘[fvplayer splash="customfield.jpg" src="customfield.mp4" qsel="true" width="100%" height="100%" autoplay="false" speed="buttons"]‘

    Thanks

    Mária Stašová 4 years ago
    Avatar photo

    Hello Kendell,

    works fine like that too (of course with embed before the shortcode). The only problem is that with Vimeo hosted videos it tends to load the link from shortcode as a vimeo player and ignore FV Player. Do you plan on using Vimeo? We could fix that, I’ll let Martin know.

    Thanks,
    Maria

    Kendell 4 years ago

    Hi again,

    Thanks for confirming. Currently I don’t use Vimeo, but I have plans to start using it in the next two months there about. So it can be great if it can be sorted by then.

    Thanks so much!

    Kendell 4 years ago

    Hello Maria,

    Is it a must to have the FV player shortcode embedded in the post content section of the page?

    I use a template I don’t use the default post content area to store my content. I use custom fields.

    Can you advise?

    Martin 4 years ago

    Hello Kendell,

    are you using FV_Player_MetaBox? This is how we register that for LearnDash:

    if( class_exists('\FV_Player_MetaBox') ) {
      new \FV_Player_MetaBox( array(
          'name' => 'FV Player',
          'meta_key' => 'lesson_fv_player',
          'post_type' => 'sfwd-lessons',
          'display' => false,
          'multiple' => false
        )
      );
      new \FV_Player_MetaBox( array(
          'name' => 'FV Player',
          'meta_key' => 'lesson_fv_player',
          'post_type' => 'sfwd-topic',
          'display' => false,
          'multiple' => false
        )
      );
    }
    

    If you do something similar you could try to change your key to the lesson_fv_player as seen above and then update the database entries.

    Then once you save the lesson it should be used for the video progression.

    The downside is that the display would be limited to what LearnDash has built-in.

    The problem is that LearnDash LMS does use some HTML markup which has to be present on the player which is used for video progression and also some JavaScript globals. It was not easy to create this integration.

    Thanks,
    Martin

    Martin 4 years ago

    Hello Kendell,

    we added a feature which lets you put in [fvplayer] shortcode into that LearnDash Video URL field and then it gets saved into that more fancy field with preview.

    Please reinstall FV Player from this link to get the fixed version: https://github.com/foliovision/fv-wordpress-flowplayer/archive/master.zip

    To do that you will have to first deactivate and delete the current FV Player plugin you are using. WordPress will warn you that you might loose settings and data, but it’s not the case with our plugin, no settings now videos will be lost. Or you can just replace the plugin files via FTP.

    Thanks,
    Martin

    Kendell 4 years ago

    Hi Martin,

    Thanks for your pursuit on this.

    I believe my setup is a bit different from what you are explaining.

    I have created a custom field where I upload .mp4 files that is then offloaded to my video host.

    As a result I have created a template in which link of the video is passed to the shortcode dynamically. This is what the sample shortcode looks like:

    [fvplayer splash="https://domain.com/filename.jpg" src="https://domain.com/filename.mp4" qsel="true" width="100%" height="100%" autoplay="false" speed="buttons"]

    Do you need me to send a quick video or so showing my setup?

    Martin 4 years ago

    Hello Kendell,

    as I was mentioning LearnDash LMS does use some HTML markup which has to be present on the player for it to work with the video progression.

    The shortcode has to be in the LearnDash Video URL field, otherwise it does now work.

    In your case you could perhaps store the resulting shortcode in their post meta field or put it these using WordPress filter get_post_metadata for the _sfwd-lessons and _sfwd-topic meta keys. The actual video URL is stored as sfwd-lessons_lesson_video_url or sfwd-topic_lesson_video_url key in the meta value array.

    It took us a while to figure it out, you won’t find that in any LearnDash LMS docs.

    Thanks,
    Martin

Viewing 9 replies - 1 through 9 (of 9 total)
Reply To: Shortcode – Use FV Player LearnDash with custom code



Please Sign in or Register to upload files.

Related Posts

  1. Pause video at a specific time based on custom field value

    Pause video at a specific time based on custom field value

  2. Using LearnDash And Video Progression with FV Player

  3. Using a shortcode in the source attribute of the embed code

    Using a shortcode in the source attribute of the embed code

Primary Sidebar

How to …

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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‬