JW Player for Flash & HTML5 Video
Shortcode for Youtube Video (4 posts)

  1. mobe
    Posted 2 years ago #

    I cant find a documentation for the JW Player Shortcodes. How do I embed a Youtube Video with a shortcode without using Media manager?

    I want to render the Youtube video based on a custom field (Youtube ID) in my themes single.php through echo do_shortcode('[Shortcode_with_YT_ID_from_custom_field]');

    What is the right Shortcode for Youtube Video in JW Player 6 Plugin?

    Maybe there is also a php snipped I can use direct, without using do_shortcode function for this?


  2. JW Player
    Plugin Author

    Posted 1 year ago #

    The JW Player uses its own shortcode parser. This is because of legacy reasons, but also because support for shortcodes in the_excerpt is limited. You can play with shortcode settings in the settings menu of the plugin. You can also toggle the setting in jwplayermodule.php (see lines 33-45). This allows you to enable the regular shortcode, but please note that we do not officially support this option (that's why it's no official setting).

  3. Mydien
    Posted 1 year ago #

    Small problem :)

    if you use jw player with youtube... you can't get views on the YouTube Video :)

  4. JW Player
    Plugin Author

    Posted 1 year ago #

    This is because we use their API, and views through the API don't count against the original page on YouTube.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JW Player for Flash & HTML5 Video
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.