WordPress.org

Plugin Directory

YouTube Channel

Show video thumbnails or playable blocks of recent videos from YouTube Channel or Playlist.

When you need to display sidebar widget with latest video from some YouTube channel or playlist, you can use customisable YouTube Channel plugin.

Simply insert widget to sidebar, set channel name and if you wish leave all other options on default. You will get latest video from chosen YouTube channel embedded in sidebar widget, with link to channel on the bottom of the widget. If you wish to use playlist instead of channel, just set playlist ID and injoy!

If you like this extension and you find it useful, please rate it on the right side.

Features

  • Display latest videos from YouTube channel, favorites or playlist
  • Option to get random video from resources mentioned above
  • Responsive (one full width video per row) or non responsive (video wall)
  • Preferred aspect ratio relative to width (16:9, 16:10 and 4:3)
  • Custom width for video embeded object (default is 306px)
  • Enhanced Privacy
  • Choose to display video as thumbnail, HTML5 (iframe), HTML5 Asynchronous (iframe2), Flash (object) or Chromeless video
  • Thumbnail mode opens video in lightbox
  • Custom caching timeout
  • Optimized gdata feeds
  • Optional video autoplay with optional muted audio
  • Show customized link to channel below videos

Notice

For fully functional plugin you need to have PHP 5.3.29 or newer! If you experience issues on older PHP, we can't help you as we don't have access to such old development platform.

Styling

You can use style.css from theme to style YouTube Video widget content.

  • .youtube_channel - main widget wrapper class (non-responsive block have additional class default, responsive block have additional class responsive)
  • .ytc_title - class of video title abowe thumbnail/video object
  • .ytc_video_container - class of container for single item
  • .ytc_video_1, .ytc_video_2, ... - class of container for single item with ordering number of item in widget
  • .ytc_video_first - class of first container for single item
  • .ytc_video_last - class of last container for single item
  • .ytc_video_mid - class of all other containers for single item
  • .ytc_description - class for video description text
  • .ytc_link - class of container for link to channel

Known Issues

  • Controls light theme and hidden annotations does not work for chromeless object.
  • Video description for videos from playlist does not work.
  • Removing YouTube logo from playback control bar does not work for all videos
  • Async HTML5 video does not work for 2nd same video on same page (two YTC blocks set to Async HTML5)
  • Chromeless video could not be used as responsive player

If WordFence or other malware scan tool detect YouTube Channel file youtube-channel.php as potential risk because base64_encode() and base64_decode() functions, remember that we use this two functions to store and restore JSON feeds to transient cache, so potential detection is false positive.

Credits

How To Use

Add New Widget

Use Playlist

Shortcode

Along to Widget, you can add YouTube Channel block inline by using shortcode [youtube_channel]. Default plugin parameters will be used for shortcode, but you can customize all parameters per shortcode.

General Settings

  • class (string) Set custom class if you wish to target special styling for specific YTC block
  • channel (string) ID of preferred YouTube channel. Do not set full URL to channel, but just last part from URL - ID (name)
  • playlist (string) ID of preferred YouTube playlist.
  • res (int) Resource to use for feed:
    • 0 Channel
    • 1 Favorites (for defined channel)
    • 2 Playlist
  • only_pl (bool) If you set to use Playlist as resource, you can embed youtube playlist block instead single video from playlist. Simply set this option to true (1 or true)
  • cache (int) Period in seconds for caching feed. You can disable caching by setting this option to 0, but if you have a lot of visits, consider at least short caching (couple minutes).
  • fetch (int) Number of videos that will be used as stack for random pick (min 2, max 50)
  • num (int) Number of videos to display per YTC block.
  • fix (bool) Option to fix No Items error, and also to respect order of videos in feed or playlist.
  • random (bool) Option to randomize videos on every page load.

Video Settings

  • ratio (int) Set preferred aspect ratio for thumbnail and video. You can use:
    • 3 16:9 (widescreen)
    • 2 16:10 (computer screen) deprecated
    • 1 4:3
  • responsive (bool) Distribute one full width video per row.
  • width (int) Width of thumbnail and video in pixels.
  • show (string) Object that will be used to represent video. We have couple predefined options:
    • thumbnail Thumbnail will be used and video will be loaded in lightbox.
    • iframe HTML5 (iframe)
    • iframe2 HTML5 (iframe) with asynchronous loading - recommended
    • object Flash object (not so good for Apple devices) deprecated
    • chromeless Chromeless solution (also not good for Apple devices) deprecated
  • no_thumb_title (bool) By default YouTube thumbnail will have tooltip with info about video title and date of publishing. By setting this option to 1 or true you can hide tooltip
  • themelight (bool) By default YouTube have dark play controls theme. By setting this option to 1 or true you can get light theme in player (HTML5 and Flash)
  • controls (bool) Set this option to 1 or true to hide playback controls.
  • fix_h (bool) If you did not set to hide player controls, you can set this option to 1 or true to fix video height taken by controls
  • autoplay (bool) Enable autoplay of first video in YTC video stack by setting this option to 1 or true
  • mute (bool) Set this option to 1 or true to mute videos set to autoplay on load
  • norel (bool) Set this option to 1 or true to hire related videos after finished playbak
  • nobrand (bool) Set this option to 1 or true to hire YouTube logo from playback control bar

Content Layout

  • showtitle (bool)
  • showdesc (bool)
  • desclen (int)
  • noinfo (bool)
  • noanno (bool)

Link to Channel

  • goto (bool)
  • goto_txt (string)
  • popup (int)
  • userchan (bool)

Requires: 3.9.0 or higher
Compatible up to: 4.2
Last Updated: 2015-4-24
Active Installs: 10,000+

Ratings

3.7 out of 5 stars

Support

3 of 6 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,2,2 100,1,1
100,1,1 50,2,1
100,1,1 0,1,0
100,2,2 100,2,2 100,3,3
100,1,1
0,1,0 100,1,1 100,1,1 100,3,3
33,3,1
100,4,4
100,1,1 50,2,1
100,1,1
33,3,1 100,2,2
100,1,1
0,1,0
100,1,1
100,1,1