IX Show Latest YouTube

IX Show Latest YouTube Resources


WP Plugin Directory

Forum

Download

Google Code Repository


IX Show Latest YouTube provides a shortcode and a template tag to embed the lates video or current live stream of a specified YouTube channel. It comes with an options page to let you set the default options for YouTube ID, width and height. You can customize these parameters with the shortcode and template tag if needed.

The idea was born by Moritz Tolxdorff, a german G+ User and  Google Helpdesk TC when he was looking for a way to show his current Techalk or other YouTube Live Streams  on his WordPress blog. He asked me to built a WordPress plugin around his Javascript code. So here is the result – IX Show Latest YouTube.

 

Update April 12th,  2013

V2.0 is out. The javascript part was removed completely. YouTube queries will be done server side with PHP now. Two new options for “autoplay” and “count of videos” have been added.

Readme

Contributors: ixiter, djosephdesign
Donate link: http://ixiter.com/ix-show-latest-youtube/
Tags: YouTube, Videoplayer, Hangout on Air, YouTube Live, Shortcode, Template Tag, live-streaming, Google+
Requires at least: 3.4
Tested up to: 3.9.1
Stable tag: 2.3.1
License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html

Provides a shortcode and a template tag to embed the latest video or current live stream of a specified YouTube channel.

Description

The plugin provides a shortcode and a template tag to embed the latest video or current live stream of a specified YouTube channel. It comes with an options page to let you set the default options for YouTube ID, width, height, autoplay and count of latest videos to embed. You can customize these parameters with the shortcode and template tag if needed.

This also works great with YouTube Live, by following this fallback progression.

  1. If you're currently live, display the live video.
  2. If you're not currently live, display the next upcoming live event.
  3. If there is no upcoming live event, display the text from Settings > Ixiter Show Latest YT > Show message if not broadcasting.
  4. If there is no "not broadcasting" message, show the most recent YouTube video from your channel.

Installation

  1. Upload the complete ixShowLatestYt folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. GoTo the plugins options page and setup your default settings
  4. Done

Frequently Asked Questions

Is it possible to have the last 3 or so videos showing?

Yes. You can set a default option for "count of latest videos to embed" and use a parameter/attribute in Template tag and shortcode as well.

Is it possible to set the video start playing automatically?

Yes. You can set a default option for "autoplay" and use a parameter/attribute in Template tag and shortcode as well. If you set "count of latest videos" higher than 1, only the first video will autoplay. If you manually insert more than one video, for the love of all mankind, please don't make them all autoplay.

Changelog

2.3.1

  • June 19, 2014
  • Fix: Default settings for "autoplay" being ignored when embedding a single video
  • Fix: Incorrect URL parameters in embed code on non-live instances
  • New: "Show related" toggle in the settings with the default being disabled
  • New: "related" option for shortcode and template tags

2.3

  • May 16, 2014
  • Removed pixel references in embed, to allow for auto, %, em, or px
  • Updated documentation
  • Hide related videos from embed
  • Updated feed method to more compatible WordPress method
  • Changed active to use pending as fallback

2.2

  • September, 10th 2013
  • No live message feature added

2.1.1

  • September, 6th 2013
  • Fixed get_options bug

2.1

  • April, 15th 2013
  • Fixed a bug in channel setup for shortcode and template tag
  • Fixed a bug in requesting the live video ID

2.0

  • April, 12th 2013
  • Major version change!
  • removed the javascript and query YouTube from server side now
  • added option for autoplay - suggested by Angus Todman
  • added option for count of latest videos to embed - suggested by hameiria

1.0

  • November, 13th 2012
  • First public version

Upgrade Notice

2.1

Fixed a bug in channel setup for shortcode and template tag. Fixed a bug in requesting the live video ID

2.0

Javascript removed. "autoplay" and "count of latest videos to embed" options added.

Credits

  • Moritz Tolxdorff - for the original javascript
  • Angus Todman - for suggesting count of latest videos option
  • hameiria - for suggesting autoplay option and bug reports
  • My Mum - for everything