Galleries

You can use the plugin to create a popup video gallery. The shortcode uses options similar to the WordPress image gallery shortcode. In its simplest form use the code [videopack gallery=”true”] to create a gallery of all videos attached to the post. Only videos in the WordPress Media Library can be included in video galleries. Thumbnail size and video popup size can be set on the plugin settings page or in the shortcode. To make a custom gallery that includes videos that aren’t attached to the current post you’ll need to determine the video’s ID, which is shown under the Video Stats section when viewing the attachment. Switch the “insert” option from “Single Video” to “Video Gallery” and you’ll get a number of additional options (all of which are optional). Add a comma-separated list of video IDs in the “Include” field to create a gallery manually. Note: the “Create Gallery” section of the Add Media window is a built-in WordPress function and is only for making image galleries.

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

  • 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.
  • gallery_per_page="xx" or"false" to disable pagination. Number of video thumbnails to show on each gallery page.
  • gallery_title="true/false" display the title overlay on gallery thumbnails.

Powered by BetterDocs