Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Show Latest Videos From YouTube Channel in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Show Latest Videos From YouTube Channel in WordPress

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.

Displaying a YouTube Channel Gallery in WordPress

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.

Configuring YouTube Widget Settings

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:

YouTube widget showing latest videos with thumbnails and video player

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+.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Sona says:

    How can I give pagination for videos?

  2. JOY says:

    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?

    Is this the right direction of solution?

  3. Patrick Ongima says:

    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.

  4. Tommy Nguyen says:

    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?

  5. Sang says:

    Plugin YouTube Channel Gallery not working with new API of youtube.

    • Larry Pham says:

      Yes it’s not compatible. Anyone knows how to solve this issue?

    • API?? says:

      The API key is a pain in the ass to find on the YouTube page. Is there a similar widget requiring no api key?

      • ingeb says:

        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.

  6. Aditya Nath Jha says:

    Was using it on and now the plugin is broken and showing error, it’s not compatible with latest changes by YouTube.

  7. eslam says:

    First video, is showing an error. the large one and first thumbnail.

  8. Kandy says:

    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?

  9. gnfb says:

    Your articles are very helpful thanks you

  10. joan says:

    brilliant, thanks so much for these clear instructions…i was searching everywhere for an answer.

  11. Robert Thompson says:

    Nice article. I have a Youtube video player on my website’s homepage. Also my template is touch responsive.

  12. Marika says:

    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…

  13. Mike Johnson says:

    How can I remove the video player AND let the videos play within themselves, rather than opening in YouTube?

  14. Emma says:

    This is awesome! Love your tips!

  15. Carol Butler says:

    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.

  16. Ramchandra Tikhe says:


    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 and

  17. Ramesh Joshi says:

    Its fantastic and easy way to learn. Thanks a lot to provide a good method to know more about wordpress.

  18. Nancy Seeger says:

    This looks great. Any idea is this works with WordPress 3.8? On it shows it is compatible up to 3.5.2 and no one has commented yet if it works with 3.8.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.