WordPress Video Galleries
Overview
Information about implementing galleries of videos in WordPress.
There doesn't seem to be a solution for combining videos in image galleries. The image gallery plugin that I have used is NextGEN Gallery which doesn't support videos.
YouTube/Video galleries
YouTube SimpleGallery WordPress plugin
Despite the name, this plugin also supports Vimeo videos, and can combine them in a gallery with YouTube videos.
Gotchas: Thumbnails not showing up
Using the Timthumb option, thumbnails images were broken.
Tracked this down to the use of get_bloginfo('url') to create the thumbnail URLs.
The thumbnail URLs are basically the Timthumb script URL with the image URL as an argument.
get_bloginfo('url') returns the "Site Address URL" as defined in the WP dashboard. This is the URL of the site itself.
site_url() returns the "WordPress Address URL" as defined in the WP dashboard, which is the URL of the WP installation.
The result was that the URL of the Timthumb script was missing the WP root directory, which is an easy thing to miss.
The fix was to edit [WP_ROOT]/wp-content/plugins/youtube-simple/inc/shortcode.php, search for timthumb and replace get_bloginfo('url') with site_url().
Gotchas: Vimeo images not showing up
The vimeo domain was not included in the list of allowed sites for the Timthumb script.This has been fixed as of version 2.0.4.
Gotchas: Updating the plugin
- See the issue with thumbnails not showing up. This fix needs to be applied after an update unless it's changed by the authors.
- The plugin has a PHP call to
session_start()at line 134 ofyoutube_simplegallery.phpand line 236 of(removed as of v2.0.5) which throw PHPinc/shortcode.phpE_NOTICEmessages whenWP_DEBUGis set to True.
Usage
Galleries of uploaded videos
Saw that there was at least one plugin that looked very good, but haven't had to implement this yet.