Videos are fantastic for engagement and add that all-important visual aspect to your website. If you have your own YouTube channel and publish regular videos, you can easily show your most recent content on your website to increase exposure.
In this guide, we will show you how to display your latest videos in the sidebar, posts and pages.
YouTube Channel Gallery
This quickest and easiest way to add YouTube videos to your content is with a plugin. The best one for this job is YouTube Channel Gallery, a free plugin by PoseLab.
To get this plugin, you will need to firstly login to your WordPress dashboard and go to Plugins > Add New. In the search field, enter ‘YouTube Channel Gallery’ and click on Install Now. Once installed, activate the plugin and you are good to go.
Configuring the Plugin
YouTube Channel Gallery features plenty of options and will need to be configured according to your needs.
The best place to display a gallery so that videos are easily viewable without distracting from the central content of your site is the sidebar. Once the plugin has been activated, go to Appearance > Widgets and drag-and-drop YouTube Channel Gallery over to your chosen sidebar.
Before videos can be shown, you will need to set-up the plugin accordingly. Open the widget and give your gallery a name. You will then need to add your YouTube user ID or playlist ID so that the plugin can link to your YouTube content.
Next, click on the Player and Thumbnail tabs and choose the player and thumbnail sizes for your gallery. Once this is done, click on Save and close the widget.
That’s all that’s required. Your videos will now be displayed in your sidebar.
Adding YouTube Gallery to Post or Page
If you want to add a YouTube gallery in your WordPress posts or pages, you can do so easily by adding shortcode.
In your chosen post or page (Posts > All Posts or Add New; Pages > All Pages or Add New), click on the Text tab and enter the following shortcode:
If you would rather display a playlist instead of a channel gallery, you can change the shortcode to include the required feed type and playlist ID so it looks like this:
[Youtube_Channel_Gallery feed="playlist" user="Fx3wFI-uCabHamb7A"]
The long video ID can be found in the URL of the playlist.
If you wish to include a description alongside the thumbnail, add the following shortcode:
[Youtube_Channel_Gallery user="youruserID" title="1" description="1" thumbnail_alignment="top" descriptionwordsnumber="10"]
Change the information as necessary to suit.
Your YouTube channel gallery or playlist will now be displayed within your post or page according to your needs.