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

Foliovision

Main navigation

  • 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

Shortcode – Use FV Player LearnDash with custom code

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

  • Kendell 3 years, 4 months 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á 3 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 3 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á 3 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 3 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 3 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 3 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 3 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 3 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 3 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

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

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 © 2025 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‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!