Embedding a YouTube video into WordPress is one simple task. The developers of WordPress have made it so easy that you only need to copy and paste the link into your post. So what if you are an active YouTuber and would like to have your whole channel embedded into your website? Let us go through how we can do that using YouTube Channel Gallery plugin.
First, you will need to install the plugin from WordPress.org plugins directory. We have written an article on how you can extend your website using WordPress plugins which can help you in the installation process.
There are two ways you can embed your YouTube channel with
- Using a Widget
- Using a Shortcode
Embedding a Channel using Widgets
If you ever wanted to embed your Channel in one of your widget areas, you can easily do that by navigating to Appearance » Widgets. From there you can select YouTube Channel Gallery widget and drag it to the widget area you would like it to appear on.
Before you can start embedding any channel, you will need to get an API from Google Developers Console.
The widget has vast configuration options for you to play with. It gives you full control of your videos and how they show on your website. You have the choice to show all videos in your channel, your favorites, your likes, or one of your playlists.
The different tabs also allow full control on how your player should look like, add a search box, control the number of videos to embed, and link to your YouTube channel if you would like to.
Embedding a Channel using a ShortCode
Another option is to embed your YouTube Channel using shortcodes, which is useful when you want to have your channel show in a full page.
There are different ways you can use the shortcode to display your channel.
[Youtube_Channel_Gallery user=”YouTube_Username” key=”your_Google_API_key” maxitems=”9″ thumb_columns_ld=”3″ title=”1″ description=”1″ description_words_number=”10″]
Shortcodes are always written inside of brackets for them to execute. Let us break down the rest of the shortcode to understand what exactly does it mean
- Youtube_Channel_Gallery: This will execute the plugin and do all the magic.
- user=”YouTube_Username”: The username you want to pull the videos from.
- key=”your_Google_API_key”: Your Google API key which can be generated from Google Developers Console.
- maxitems=”16″: Maximum number of videos to show.
- thumb_columns_ld=”3″: Number of columns to place the videos in.
- title=”1″: Show the title for each video. To disable it you can change the value to 0.
- description=”1″: Will show the description of the videos each one. To disable it you can change the value to 0.
- description_words_number=”10″: Will truncate the description to a count of 10 words.
You can play around with those values to show the channel as you require. Here is a sample of how it should look like
If you want to show a particular playlist feed rather than your full channel, then you can use the below short code. The difference is that you need to tell the plugin that you want to play a playlist, and the user would be the playlist ID.
[Youtube_Channel_Gallery feed=”playlist” user=”PL454A0274C1223C90″ key=”your_Google_API_key” maxitems=”16″ thumb_columns_ld=”2″ title=”1″]
YouTube Channel Gallery plugin is very useful for those who are very active on YouTube, however, would like to show those videos on their website and have full control on it.
If you have further questions, please use the comments below or ping us on Twitter.