November 15, 2014 - Shortcodes

Video Gallery [KGVID] shortcode

From Video Embed & Thumbnail Generator

Normally, this tag alone will display all videos attached to the page/post. This tag will be inserted with the "Add Media" button over the WYSIWYG editor.

To further modify the way the video player works, add the following options inside the `[KGVID]` tag. These will override anything you've set in the plugin settings or attachment details.This information is also available in the post edit help screen.

  • id="xxx" video attachment ID (instead of using a URL).
  • videos="x" number of attached videos to display if no URL or ID is given.
  • orderby="menu_order/title/post_date/rand/ID" criteria for sorting attached videos if no URL or ID is given.
  • order="ASC/DESC" sort order.
  • poster="http://www.example.com/image.jpg" sets the thumbnail.
  • endofvideooverlay="http://www.example.com/end_image.jpg sets the image shown when the video ends.
  • width="xxx"
  • height="xxx"
  • align="left/right/center"
  • inline="true/false" allow other content on the same line as the video
  • volume="0.x" pre-sets the volume for unusually loud videos. Value between 0 and 1.
  • mute="true/false" sets the mute button on or off.
  • controlbar="docked/floating/none" sets the controlbar position. Video.js only responds to the "none" option.
  • loop="true/false"
  • autoplay="true/false"
  • watermark="http://www.example.com/image.png" or "false" to disable.
  • title="Video Title" or "false" to disable.
  • embedcode="html code" changes text displayed in the embed code overlay in order to provide a custom method for embedding a video or "false" to disable.
  • view_count="true/false" turns the view count on or off.
  • caption="Caption" text that is displayed below the video (not subtitles or closed captioning)
  • description="Description" Used for metadata only.
  • downloadlink="true/false" generates a link below the video to make it easier for users to save the video file to their computers.
  • right_click="true/false" allow or disable right-clicking on the video player.
  • resize="true/false" allow or disable responsive resizing.

These options will add a subtitle/caption track

  • track_src="http://www.example.com/subtitles.vtt_.txt" URL of the WebVTT file.
  • track_kind=subtitles/captions/chapters
  • track_srclang=xx the track's two-character language code (en, fr, es, etc)
  • track_label="Track Label" text that will be shown to the user when selecting the track.

These options will only affect Video.js playback

These options are available for video galleries (options work the same as standard WordPress image galleries)

  • gallery="true" turns on the gallery
  • gallery_thumb="xxx" width in pixels to display gallery thumbnails
  • gallery_exclude="15" comma separated video attachment IDs. Excludes the videos from the gallery.
  • gallery_include="65" comma separated video attachment IDs. Includes only these videos in the gallery. Please note that include and exclude cannot be used together.
  • gallery_orderby="menu_order/title/post_date/rand/ID" criteria for sorting the gallery.
  • gallery_order="ASC/DESC" sort order.
  • gallery_id="241" post ID to display a gallery made up of videos associated with a different post.
  • gallery_end="close/next" either close the pop-up or start playing the next video when the current video finishes playing.

Comments are closed.