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.
For fully functional plugin you need to have PHP 5.3 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.
You can use
style.css from theme to style
YouTube Video widget content.
.widget_youtube-channel– class of whole widget (parent for widget title and YTC block)
.youtube_channel– YTC block wrapper class. Additional classes are available:
.default– for non-responsive block
.responsive– when you have enabled responsive option
.ytc_title– class of H3 tag for video title above thumbnail/video object
.ytc_video_container– class of container for single item, plus:
.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_mid– class of all other containers for single item
.ytc_video_last– class of last container for single item
.ar16_9– class for Aspect Ratio 16:9
.ar4_3– class for Aspect Ration 4:3
.ytc_thumb– class of anchor for Thumbnail mode
.fluid-width-video-wrapper– class for parent element of IFRAME for enabled responsive
.ytc_description– class for video description text below thumbnail/video object
.ytc_link– class of container for link to channel
Thenify.meif you wish to hide related videos, because this theme uses original
Magnific Popuplibrary that does not support
If WordFence or other malware scan tool detect YouTube Channel fule youtube-channel.php as potential risk because
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.
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.
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)
vanity(string) part after http://www.youtube.com/c/ from Custom URL
playlist(string) ID of preferred YouTube playlist.
resource(int) Resource to use for feed:
1Favorites (for defined channel)
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.
random(bool) Option to randomize videos on every page load.
ratio(int) Set preferred aspect ratio for thumbnail and video. You can use:
responsive(bool) Distribute one full width video per row.
width(int) Width of thumbnail and video in pixels.
display(string) Object that will be used to represent video. We have couple predefined options:
thumbnailThumbnail will be used and video will be loaded in lightbox. (default)
iframe2HTML5 (iframe) with asynchronous loading - recommended
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.
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
showtitle(bool) Set to 1 or true to show video title.
titlebelow(bool) Set to 1 or true to move video title below video.
showdesc(bool) Set to 1 or true to show video description.
desclen(int) Set number of characters to cut down length of video description. Set to 0 to use full length description.
noinfo(bool) Set to 1 or true to hide overlay video infos (from embedded player)
noanno(bool) Set to 1 or true to hide overlay video annotations (from embedded player)
Link to Channel
goto(bool) Set to 1 or true to display link to channel at the bottom of YTC block.
popup(int) Control where link to channel will be opened:
0open link in same window
2open link in new window with target="_blank" anchor attribute
link_to(int) URL to link:
2Vanity custom URL (default)
0Legacy username page
Requires: 3.9.0 or higher
Compatible up to: 4.2.2
Last Updated: 2015-5-24
Active Installs: 10,000+
38 of 41 support threads in the last two months have been resolved.
Got something to say? Need help?