Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Embed a YouTube Playlist in WordPress (Best Method)

Adding YouTube playlists to your website can increase user engagement and improve SEO by providing your visitors with a seamless viewing experience. It can also help you gain more subscribers and grow your channel.

At WPBeginner, we have been embedding YouTube videos on our blog for over a decade. We’ve seen firsthand how YouTube videos and feeds can significantly boost engagement.

Some users prefer video instructions over written content, and offering this option has helped us grow our audience and increase traffic.

In this article, we will show you how to easily embed a YouTube playlist in WordPress.

How to embed a YouTube playlist in WordPress

Why Embed YouTube Playlists in WordPress?

If you want to make your content more engaging, then adding YouTube videos is a great way to grab your visitor’s attention.

There are a lot of benefits to embedding YouTube content:

  • You can keep people engaged and get them to spend more time on your website.
  • Video content helps boost your WordPress SEO because the high engagement and low bounce rate send a positive signal to search engines.
  • It helps you to promote your YouTube channel and get more subscribers.

There are a few different ways to add YouTube content to your site. You could embed a single YouTube video, show the latest videos from your YouTube channel, or even create a video gallery.

So, why choose a playlist?

Embedding a playlist lets you keep the videos focused on a single topic.

A playlist also helps you to guide your visitors from one video to the next one in order, helping them to stay even more engaged on your website.

That said, let’s look at how you can embed YouTube playlists on your WordPress site.

How to Embed a YouTube Playlists in WordPress

WordPress by default does not allow you to embed a playlist. The easiest way to embed a YouTube playlist in WordPress is by using the YouTube Feed Pro by SmashBalloon plugin.

It’s the best WordPress plugin for YouTube and helps you create custom YouTube feeds for your website. It lets you add your YouTube playlists and offers lots of customization features.

YouTube feeds pro by SmashBalloon

The plugin automatically updates the playlist when you add more videos to it on YouTube. You can even embed live YouTube streams in WordPress.

For this tutorial, we’ll be using the premium version of YouTube Feed Pro because it offers more features. There is also a free version that you can use to try it out.

First, you must install and activate the YouTube Feed Pro plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, visit the Youtube Feed » Settings page from the WordPress dashboard to enter the license key.

You can get this information from your account on the Smash Balloon website.

Activate your smash balloon license key

After that, head over to the YouTube Feeds » All Feeds page from the WordPress dashboard.

From here, click on the ‘Add New’ button at the top to start creating a feed.

This will direct you to the ‘Select Feed Type’ page where you can choose if you want to embed a single video, your whole channel, Live stream videos, or more.

Since you want to embed a playlist, simply select the ‘Playlist’ option and click on the ‘Next’ button to continue.

Select Playlist as feed type

This will open a prompt on your screen asking you to provide your YouTube API key in order to connect your channel with the plugin.

If you have an API key, simply paste it into the prompt.

Add YouTube API key

Creating a YouTube API Key

If you don’t have an API key for YouTube, visit the Google Cloud Platform website and then log in to your Google account.

After that, click on the ‘Select a project’ button at the top.

Click Select Project button

This will open a popup on the screen that will display all the projects that you have created before.

From here, click the ‘New Project’ button at the top right corner.

Click the New Project button

This will direct you to a new page where you can start by typing in a name for your project. This can be anything that will help you easily identify it.

Next, select an ‘Organization’ and its location from the dropdown menu. You can select ‘No Organization’ and click the ‘Create’ button to continue.

Add YouTube project name

Upon project creation, you will be taken to the project dashboard.

Here, click the ‘+ Enable APIs And Services’ button in the top menu.

Click on the + ENABLE APIS AND SERVICES button

You will then be directed to the API Library, which displays different Google services for which you can create APIs and use them in your projects.

Now go ahead and search for ‘YouTube Data API v3’ in the search box.

Search for the YouTube data API v3 option

Once the ‘YouTube Data API v3’ result shows up, just click on it.

This will take you to a new screen. From here, you must click on the ‘Enable’ button to activate the YouTube API key.

Enable the YouTube API

You will now be taken to the ‘API/Service Details’ page.

Once you are there, click the ‘Create Credentials’ button at the top.

Click the Create Credentials button

Once you are on another page, simply check the box next to the ‘Public Data’ option.

After that, click on the ‘Next’ button to create your API.

Check the Public data box and click on the Next button

Your API Key will now be created and displayed on the page.

Simply copy this key and click on the ‘Done’ button.

Copy the YouTube API key

You can now visit your WordPress dashboard and paste this API key there.

This will take you to another page where you must add the playlist ID.

You can find this ID by visiting your YouTube channel and then going to the playlist you’d like to display on your website.

The string of letters and numbers after the ‘=’ symbol in the URL is your playlist ID.

Find YouTube playlist ID

Simply copy the ID and enter it under the ‘Playlist ID’ option.

Once you do that, click the ‘Next’ button.

Add the playlist ID

Customize and Embed Your YouTube Playlist

The Smash Balloon’s feed editor will now open up on the screen where you will see a preview of the YouTube playlist on the right with customization settings on the left.

From here, you can edit the width, height, and background color of your YouTube feed.

You can now change the layout of your feed. The plugin offers multiple layout options, including a grid, gallery, list, or carousel type.

Customize feed layout

You may also be able to configure additional settings depending on your chosen layout.

The plugin also offers more optional options to customize your YouTube feed. For instance, you can choose what information to display, such as the play icon, title, views, date, and more.

There are also options for entering translations for info text, editing header options, changing the Load More and Subscribe button settings, adding moderation, and other advanced settings.

For detailed instructions, you may want to see our tutorial on how to create a video gallery in WordPress.

YouTube feed editor

Once you are done, click the ‘Save’ button at the top to store your settings.

Next, you can now display your YouTube playlist on any WordPress page or post.

To start, simply create a new page or edit an existing one. Once you’re in the WordPress content editor, simply click the ‘Add Block’ button and add the ‘Feeds for YouTube’ block.

Add Feed for YouTube block

Your YouTube playlist will now appear on your page.

Go ahead and publish your article to see the YouTube playlist feed in action.

YouTube Playlist preview

Bonus: Add YouTube Video as a FullScreen Background in WordPress

Apart from embedding a playlist, you can also use a YouTube video as a fullscreen background for your website. This will immediately grab the user’s attention and encourage them to explore your site.

To do this, install and activate the Advanced WordPress Backgrounds plugin. For details, see our tutorial on how to install a WordPress plugin.

Upon activation, head over to the block editor and add the ‘Background AWB’ block on the page.

How to add a fullscreen video to a WordPress blog post or page

Now, simply open and copy the URL of the YouTube video that you want to use as a background.

Then, visit the WordPress page again and add the URL in the ‘Video URL’ field in the block panel.

How to customize a YouTube background video in WordPress

After that, click the ‘Update’ or ‘Publish’ button to store your settings. Now visit your WordPress site to view the fullscreen video background in action.

For details, see our tutorial on how to add YouTube video as a fullscreen background in WordPress.

An example of a YouTube video background in WordPress

Video Tutorial

If you don’t like written instructions, then check out our video tutorial.

Subscribe to WPBeginner

We hope this article helped you learn how to embed a YouTube playlist in WordPress. You may also want to check out our beginner’s guide on how to make a social media website or our tutorial on how to add a YouTube subscribe button in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

Comments

  1. Congratulations, you have the opportunity to be the first commenter on this article.
    Have a question or suggestion? Please leave a comment to start the discussion.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.