Youtube is the largest video hosting site on the web which is why many bloggers use it to upload their videos. We have written a lot about Youtube and WordPress such as automatically fetching thumbnails for YouTube videos, add share buttons, make your videos responsive to fit all devices, etc. In this article we will show you how to show latest videos from YouTube channel in WordPress. We will also show you how to create beautiful video galleries to display in your sidebar widgets, posts, and pages.
Video Tutorial
If you don’t like the video or need more instructions, then continue reading.
First thing you need to do is install and activate the YouTube Channel Gallery plugin. After activating the plugin, go to Appearance » Widgets to display latest videos in a sidebar widget. On the Widgets screen, drag and drop YouTube Channel Gallery widget to a sidebar.
YouTube Channel Gallery widget is highly configurable, so you need to set it up. First you need to provide is a user ID or a playlist ID in the feed tab of the widget.
Click on player and thumbnails tabs to choose player and thumbnail sizes for your gallery. Once done save your settings.
Below is an example of how the channel gallery would look like in your sidebar:
You can also add a YouTube channel gallery in any WordPress post or page using a shortcode, like this:
[Youtube_Channel_Gallery user="wpbeginner"]
If you want to display a playlist instead of a channel or user, then simply change the feed type to playlist and instead of providing a user ID, enter the playlist ID like this:
[Youtube_Channel_Gallery feed="playlist" user="UUhA624rCabHAmd6lpkLOw7A"]
To display video description along with the thumbnail, you can add the following parameters to the shortcode:
[Youtube_Channel_Gallery user="wpbeginner" title="1" description="1" thumbnail_alignment="top" descriptionwordsnumber="10"]
We hope this article helped you show latest videos from your YouTube channel on your WordPress site. Subscribe to our YouTube channel for WordPress video tutorials.
For questions and feedback you can leave us a comment below or catch us on Twitter or Google+.
Hello there,
Apparently this plug-in is not working any more. Any alternate to aforementioned plug-in for youtube video gallery?
With much anticipation..
Thanking you
P.S. The plugin was working well until recently.
This tutorial is vague and not very helpful. The video trys to make sound like it is easy as 1-2-3 – but it is not. One has to have a google API and they charge you for it. They give you a free tier to get you sucked in and then you have to pay for using their API. This is not on your video or your direcitons. The plugin does not work by following your directions on configuring it the way you explained. It is not that easy to find id’s and you do not explain how to get them. This makes this plugin totally useless and I would not suggest it to anyone.It is the most difficult and confusing plugin I have ever seen. You should do your homework and update these tutorials because too many of them are like this.
WELL SAID
I just figured that out; dumping this as well
How can I give pagination for videos?
Hey,
I was using this to combine 1 youtube user’s channel and 1 playlist (the same API key)
but the shortcode seems not support the multisite playlist?
I looked up HOW TO ACCEPT AN ARRAY IN A SHORTCODE.
Is this the right direction of solution?
I have had issues with my website for the last one week because my youtube channel gallery can display the video, it gives me the error “Message from server: Gone. Check in YouTube if the id PLKauL3GQ6ayL0pHCcg58yeem8pGctjlfz belongs to a playlist. To locate the id of your playlist check the FAQ of the plugin.” Initially the id above for my playlist was working well.
Kindly help. Thank you.
I got thí message:
Error type: “Forbidden”. Error message: “The request cannot be completed because you have exceeded your quota.” Domain: “youtube.quota”. Reason: “quotaExceeded”. Location type: “”. Location: “”.
How to slove it?
Thanks,
Plugin YouTube Channel Gallery not working with new API of youtube.
Yes it’s not compatible. Anyone knows how to solve this issue?
The API key is a pain in the ass to find on the YouTube page. Is there a similar widget requiring no api key?
I would like to know that too. I must be stupid but I can’t get an api key,, I keep clicking and clicking at the google site but, well, I guess stupid.
Was using it on and now the plugin is broken and showing error, it’s not compatible with latest changes by YouTube.
Thanks we will look into it.
Any luck?
First video, is showing an error. the large one and first thumbnail.
Is there any research concerning this plugin’s compatibility with wordpress 4.0+? Currently I’m getting an error message:
Fatal error: Cannot use object of type WP_Error as array in /Applications/AMPPS/www/ubc/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 556
Or maybe this is a compatibility issue with youtube API? Any thoughts?
Your articles are very helpful thanks you
brilliant, thanks so much for these clear instructions…i was searching everywhere for an answer.
Nice article. I have a Youtube video player on my website’s homepage. Also my template is touch responsive.
Hello! I really like this plugin.. But I am wondering if it is possible to get all my user videos on page? Now there are visible only 9 of them…
How can I remove the video player AND let the videos play within themselves, rather than opening in YouTube?
This is awesome! Love your tips!
Was following your directions to set up a YouTube Video widget on my sidebar and I’m stumped by not being able to provide my YouTube ID correctly. I don’t have my name on my videos in the url (I’d like to) so for instance one of my latest videos is:
yet that cannot be my “id”
My name is Carol Butler and that’s my Youtube designation. So, what is my “id”? Or how do I create one in YouTube for the purposes of being able to have a channel gallery? Thanks.
sir
As per your newsletter i make changes Because i want my news video should come on first page,but it is not working perfect,last 5days video coming automaticly on my page,but today it is fail,i want when i upoload my news on youtube it should come on my page immedately,i upload news upto 6.30pm but it is not comong on my page after 9pm also,i want it should come within 10to15 miniuets,sir can u gude about it.
My site-thanevarta.com and youtube-www.youtube.com/Thanevarta
Its fantastic and easy way to learn. Thanks a lot to provide a good method to know more about wordpress.
This looks great. Any idea is this works with WordPress 3.8? On wordpress.org it shows it is compatible up to 3.5.2 and no one has commented yet if it works with 3.8.
Yes we tested it with WordPress 3.8 and it works fine.