YouTube SimpleGallery on WordPress.org
YouTube SimpleGallery – new and improved!
- YouTube SimpleGallery and Vimeo SimpleGallery have merged, i.e. they now have the same codebase. Old shortcodes still functional.
- NEW FEATURE: It is now possible to combine video services, i.e. you can add links from YouTube and Vimeo in the same gallery.
- NEW FEATURE: Automatically fetch titles from video service.
- NEW FEATURE: User-defined attributes in shortcode overrides default settings:
cols=xandthumbwidth=yallows for galleries with different thumb sizes, etc. - NEW SHORTCODE:
[youtubeuserfeed user=username service=youtube]– outputs a gallery from a user’s video feed – works with both YouTube (service=youtube) and Vimeo (service=vimeo).
Usage
Make sure you go through the Options for the plugin, and set defaults to your preference.
Galleries
You can now combine links from YouTube and Vimeo in the same gallery.
To embed a gallery in a Post use the following code:
[youtubegallery] http://www.youtube.com/watch?v=cRdxXPV9GNQ http://vimeo.com/13470805 http://www.youtube.com/watch?v=jJK-G9-dLzw http://www.youtube.com/watch?v=S4aqM_wu6Ns http://vimeo.com/68180971 [/youtubegallery]
If you want to add titles to the videos, add it before the link and separate with | (pipe), like this:
[youtubegallery] Avatar Trailer HD|http://www.youtube.com/watch?v=cRdxXPV9GNQ Eyes Close|http://vimeo.com/13470805 The Fast Show: Unlucky Alf|http://www.youtube.com/watch?v=jJK-G9-dLzw Jožin z bažin|http://www.youtube.com/watch?v=S4aqM_wu6Ns Mirage|http://vimeo.com/68180971 [/youtubegallery]
NOTE: If titles are added before videos, these will override titles fetched automatically from services.
The result:
User Feeds
To set up a gallery that subscribes to a user’s feed, use the following shortcode:
[youtubeuserfeed user=username service=youtube]
Note that both user and service are required for the feed to work. Service is either youtube or vimeo.
Optional attributes are maxitems=x where x is the number of items to fetch:
[youtubeuserfeed user=username service=youtube maxitems=4]
Overrides
Overrides are a way of suppressing the default settings of the plugin, with attributes of your own.
Override columns with cols=x, where x is the number of thumbs per row:
[youtubegallery cols=8]
Override thumbnail width with thumbwidht=x, where x is a pixel value:
[youtubegallery thumbwidth=100]
Fetch titles from service with autotitles=fetch (or autotitles=false to not fetch):
[youtubegallery autotitles=fetch]
And, of course, you can combine them:
[youtubegallery cols=8 thumbwidth=100 autotitles=false]
These are also applicable for the [youtubeuserfeed] shortcode.
Widgets
Add a «YouTube SimpleGallery» widget to your sidebar(s), add links with linebreaks in the Links-area. You can add titles in the same way as for Posts.
Widgets have their own fields to define columns and thumbnail width.
You cannot use shortcodes in Widgets.
Supported Video Services
Supported services are YouTube and Vimeo. Other services might be added, but a requirement is that they can deliver video streams in a HTML5-compatible format.
Note that it is possible to combine videos from both services in galleries.


54 thoughts on “YouTube SimpleGallery”