YouTube Channel

YouTube Channel addon for WordPress allows you to display widget with latest or random video from YouTube channel, playlist or favorite. After installation simply add widget to sidebar, enter name of channel or playlist ID, and the latest video from selected resource will be shown on your site.

Jump to: Features | Download | Installation | Usage | Shortcode | Customize | Preview | Credits | Your Support


In addition to show the latest videos, YouTube Channel allow user to:

  • show video as HTML5 (iframe), Asynchronous HTML5 (iframe2), Flash (object), Chromeless Player (flash object) or thumbnail
  • show one or more videos
  • show videos in regular or random order
  • show videos from channel, favorites or playlist
  • show individual videos from playlist or embed playable YouTube playlist block
  • set aspect ratio of displayed videos (16:9, 16:10 and 4:3)
  • set custom video width (default 306 px)
  • enable video autoplay (not on mobile devices)
  • mute video on autoplay (only for HTML5 options)
  • hide video controls from player
  • caching youtube feeds
  • insert YTC to content with shortcode (VisualComposer ready)

And that is not all! You can also:

  • for thumbnail mode open video in lightbox (Magnific Popup)
  • global plugin settings page powered by Redux Framework
  • set custom widget title
  • toggle name of video above object
  • toggle video info
  • toggle visibility and set custom text for link to channel
  • enable opening link to channel in new tab/window (by javascript for valid XHTML or with target)


Or visit official page here

ChangeLog you can find here.

Development or previous versions


YouTube Channel is easy to install, same as any other extension. You can do it manually or automatic.

  1. For manual installation: download, unpack archive and upload directory youtube-channel to wp-content/plugins/ directory on your hosting server with some FTP client (I recommend free and safe FileZilla).
  2. For automatic installation: go to PluginsAdd New, enter keyword youtube channel, click Search button, then click link Install Now.


After activation on Plugins page, update global plugin settings, then add widget to sidebar on Appearance Widgets, and proceed with widget configuration.

Please note, only Channel ID name is required, or on your site will be displayed video from my channel. All other options are optional.

Video tutorial

Add New Widget

Use Playlist

How To Get Debug Info

Global Settings

Starting from version 2.2.0 we have global settings page (Settings –> YouTube Channel) where you can set all default options that will be used as defaults for YTC blocks inserted with shortcode.

YouTube Channel 2.4.0 Global Settings
YouTube Channel 2.4.0 Global Settings

Main Settings

YouTube Channel: Main Settings
YouTube Channel: Main Settings
  1. Playlist ID: enter YouTube playlist ID (and not playlist name!), or you can paste URL to playlist and YTC will extract playlist ID for you.
  2. Custom CSS Class: target widget styling with custom class.
  3. Resource to use: select source of videos to display from. Can be channel, favorites or playlist.
  4. Embed standard playlist: enable displaying whole playlist block instead individual video from playlist. This option will be displayed only when Channel is selected for Resource to use.
  5. Fetch # video(s): set quantity of latest channel/playlist videos from which YTC will select random video/s.
  6. Show # video(s): set number of video objects to be shown
  7. Use Enhanced Privacy: prevent YouTube to set cookies to visitor’s browser on load
  8. Fix No items error: while YTC used RSS Feed to fetch video infos from YouTube, this option has usefull if YTC print that error message and when latest uploaded video has not seen because of YouTube caching. Now we use JSON feed but need confirmation that this option have no affect to new way of fetching video infos.
  9. Show random video: when you wish to show random video on every page load, instead latest video.

Video Settings

YouTube Channel: Video Settings
YouTube Channel: Video Settings
  1. Aspect ratio: chose target aspect ratio for video (custom, 4:3, 16:10 or 16:9)
  2. Width: set custom width of video/thumbnail in pixels (default is 306)
  3. What to show: chose between thumbnail, HTML5, Flash or Chromeless player
  4. Use light theme: set white controls instead default dark gray
  5. Hide player controls: do not show player controls
  6. Fix height by controls: when player controls are not hidden, add controls height to video height
  7. Autoplay video or playlist: if enabled, video will autostart on load
  8. Mute video on autoplay: enable autoplay of first video in YTC block, when inserted as HTML5 element
  9. Hide related videos: when YouTube finish video playback, related videos are displayed; to prevent that, enable this option

Content Layout

YouTube Channel: Content Layout
YouTube Channel: Content Layout
  1. Show video title: if enabled, video title will be displayed above object
  2. Show video description: if enabled, video description will be displayed below object
  3. Description length: set number of characters to cut down length of video description; for full length use 0 (zero)
  4. Et cetera string: set string to be appended to shortened description
  5. Hide annotations from video: do not show annotations on video during playback
  6. Hide video info: do not show video title over video during playback

Link to Channel

YouTube Channel: Link to Channel
YouTube Channel: Link to Channel
  1. Visit YouTube Channel text: custom call to action text for link to channel. You can use placeholder %channel% that will be replaced with cnannel name. Default text is: Visit channel %channel%
  2. Show link to channel: toggle link to channel below all videos. Link will open (based on selection from drop-down list below this option):
    1. same window
    2. new window with JavaScript function
    3. new window with anchor attribute target=”_blank)

Debug YouTube Channel

YouTube Channel: Debug YTC
YouTube Channel: Debug YTC
  1. Enable debugging: if in some way YouTube Channel does not work as you expect, and you think there is something that not works properly, please enable debugging option and post content from textarea below to support forum, so we can help you and/or fix issue.


You can also insert YTC block with shortcode [youtube_channel]. All options for shortcode are taken from global settings page, but you can override them by setting individual option to shortcode.

General Settings

  • 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)
    • 1 4:3
  • 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)
    • chromeless Chromeless solution (also not good for Apple devices)
  • 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

Content Layout

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

Link to Channel

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

Customize look and feel

We implemented classes for all YouTube Channel objects, so we can easy style presence of YTC by personal preferences. Simply add to style.css for your theme styling for classes:

  • .widget_youtube_channel – class of whole widget (parent for widget title and YTC block)
  • .youtube_channel – YTC block wrapper class
  • .ytc_title – class of H3 tag for video title aboe thumbnail/video object
  • .ytc_video_container – class of container for single item, plus:
    • .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 below thumbnail/video object
  • .ytc_link – class of container for link to channel

Widget in action

YouTube Channel preview (random video, w/o title and description)
YouTube Channel preview (random video, w/o title and description)
YouTube Channel preview (latest video, w/ title and description)
YouTube Channel preview (latest video, w/ title and description)



Chromeless video option has taken from plugin Chromeless YouTube.

Localisation enabled in version 0.1.3 thanks to Milan Dinić.

And we appreciate your support

Spread voice about YouTube Channel on social networks, rate and review on, feedack in comments below or Donate via PayPal

7 thoughts on “YouTube Channel”

  1. Hi, I cant get the pluggin to work. Here is the debug code i am getting.

    server: Apache/2.2.25 (Unix) mod_hive/3.6 mod_ssl/2.2.25 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_qos/10.10 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/ mod_jk/1.2.37

  2. I installed your youtube channel plugin, but have a problem. I have set it up, but from the site I click on visit youtube channel (TradingOptions4Income) it takes me to youtube and youtube says channel doesn’t exist. But it does exist, I can go to it with no problem. I have checked the typing in the link and its correct. Can you offer any suggestions?


  3. Since the update this us the error we are getting. Any suggestions. Thank you.

    Warning: base64_decode() expects parameter 1 to be string, object given in /home/robco/public_html/hoodlumfightgearnews/blog/wp-content/plugins/youtube-channel/youtube-channel.php on line 574

    1. Yes, sorry for troubles.
      Because we changed caching method, from Help tab on plugin Settings page do ReCache (read help page).
      That issue will be self-solved when previous cache expire.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">