WordPress Video Galleries

From Littledamien Wiki
Jump to navigation Jump to search

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().

This would need to be done whenever the plugin is updated, unless they change it.

Galleries of uploaded videos

Saw that there was at least one plugin that looked very good, but haven't had to implement this yet.