The plugin provides a shortcode and a template tag to embed the latest video or current live stream of one or more YouTube channels.
It comes with an options page to let you set the default options for YouTube ID(s), 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.
- If you’re currently live, display the live video.
- If you’re not currently live, display the next upcoming live event.
- If there is no upcoming live event, display the text from Settings > Ixiter Show Latest YT > Show message if not broadcasting.
- If there is no “not broadcasting” message, show the most recent YouTube video(s) from your channel(s).
- Upload the complete
ix-show-latest-ytfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- GoTo the plugins options page and setup your default settings
- 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.
- Can I use more than one YouTube channel?
Yes. You can specify a YouTube channel for each shortcode and template tag instance. But you can also combine multiple YouTube channels by typing them as a comma-separated list (for example,
moritzhangouttv,theaudacitytopodcast,oncepodcast) in the default settings, or for each shortcode and template tag instance.
- Can the player automatically refresh between events?
Live-refresh is something we’re working on and is coming soon.
- Can this display videos from a playlist?
Contributors & Developers
“IX Show Latest YouTube” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- December 2, 2014
- Fixed a little problem affecting some users where a single video would not be the latest video shown (thanks, chrisram!)
- November 19, 2014
- Fixed active live event disappearing for new visitors when another channel had a pending live event.
- Spaces after commas no longer break multi-channel support. (For example, “noodlemx, oncepodcast”)
- November 14, 2014
- Fixed combining live/pending and non-live/non-pending channels.
- Made video size default to 640 × 360 (360p widescreen).
- October 13, 2014
- Minor tweak to remove some debug timecode. Sorry about that!
- October 10, 2014
- Enhancement: You can now embed more than one YouTube channel in the same player! Use a comma-separated list, like
moritzhangouttv,theaudacitytopodcast,oncepodcastin the YouTube ID(s) field. The plugin will blend these channels together and display whichever is most recent or upcoming. This works for live, pending, and uploaded videos.
- Tweak: Revised how pending live events are ordered and displayed, after discovering a weird bug with some schedules.
- August 27, 2014
- Fix: Live events displaying in creation order instead of chronological (thanks, reachingnexus!)
- 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
- 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
- September, 10th 2013
- No live message feature added
- September, 6th 2013
- Fixed get_options bug
- April, 15th 2013
- Fixed a bug in channel setup for shortcode and template tag
- Fixed a bug in requesting the live video ID
- April, 12th 2013
- Major version change!
- added option for autoplay – suggested by Angus Todman
- added option for count of latest videos to embed – suggested by hameiria
- November, 13th 2012
- First public version