How to display the latest YouTube videos in WordPress - Want to show your latest YouTube videos with you in WordPress? Video content is becoming essential thanks to the rise from mobile users. As the largest video sharing website in the world, YouTube completely dominates rivals and has a controlling market share.
Thankfully, WordPress is fully compatible with YouTube, and there are plenty of plugins that can help you customize the way video content is displayed from you. The most important feature is displaying the latest videos from you in WordPress.
In this article, we will show you how you can do this with the GS Video for YouTube plugin.
Why do you need to display the latest YouTube videos from you in WordPress?
Creating a successful YouTube channel is as difficult as operating a website. Just like websites must deal with search engine algorithms, YouTubers need to handle algorithms from YouTube.
Just like creating loads of quality content that can help you improve your rankings, the same is true of YouTube videos. However, you have the ability to improve your success rate by uploading the latest videos from you on the WordPress website.
In fact, most successful YouTubers often have their own websites featuring all the videos from them on it. They even publish their first content on their website as a Patreon reward.
This does not say anything about how videos on website content from you can potentially save watch time, increase page time from the website, and provide visitors with an alternative solution to learn content from you.
Of course, uploading videos twice is potentially time consuming, so learning how to do it automatically is essential.
Install GS Video for YouTube
The GS Video for YouTube plugin has an impressive array of features that will help you show your latest video to you the way you want. Basically, this plugin creates a YouTube video library that you can put anywhere on the website using shortcodes.
It is very responsive, meaning the video will match the size from the device they are using. This is ideal for mobile users who are more likely to watch videos.
To get started, click on Plugin and then select the New Add option on the left admin panel.
Search for GS Video for YouTube in the available search box. This will pull in additional plugins that you may find useful.
Scroll down until you find the plugin, then click on install it and that's it.
On the left admin panel, click the GS Plugin and select the YouTube GS Library option.
See more: How to create a Landing Page
Get the YouTube API key
Before going any further, you'll need the YouTube API Key, channel ID and playlist ID to use the right plugin. For a YouTube API Key, visit the page from the developer and log in.
Click create project.
Create a project name and select a location. The default option will work fine, but we recommend making the project name easy to identify. Click the create button when you're done.
Click the three lines next to Google API. Select API, service and then click Library.
Here, you will find a whole Google-based service where you can get an API key. In this case, you want to select the YouTube v3 Data API.
Click the enable button.
Click the Create credentials button.
On this page, you need to make several choices. The first is the API you will use. Select YouTube v3 Data API option (this option will not appear if not enabled).
For the second question, select Web Server (for example: node.js, Tomcat). Select Public Data and then click on the ‘What credentials do I need to?’ Button ?.
You should now see the API Key. Copy and paste again into the appropriate box in WordPress.
To find your channel ID, you'll need to sign in to your YouTube account and check the settings. Playlist ID is likely to be found in the URL from the playlist. Alphabetical order, number on list = playlist ID from you.
Copy both of these into WordPress.
Now ready to actually use the plugin.
How to use the plugin
Below the entire API text box, ID, you'll find several settings to configure.
Here, you have the ability to specify the number of videos to display, how to order, the number of columns, the style options (only 1 option in the free version), the video height and the number of characters available Ability to view in title or description from video.
These settings are likely to be changed at any time, so you should test them to see which one is best for you.
For the purposes of this tutorial, make sure you select the option in date order. This will ensure that it grabs the latest video from your channel.
For example, if you choose to display 3 videos, the plugin will select the 3 most recent videos according to the upload date.
When done, click the Save button.
You will also notice the Style Settings tab. You can only use the option when you have the Pro version from the plugin. However, when you are using the free version, skip it.
Finally, all that's left to do is put a shortcode on your website. Just paste the following short code into anywhere such as a post, page, or event next to it:
(gs_ytgal theme = "gs_ytgal_grid")
This will make the video collection from you appear.
Why not use the embed function from YouTube?
Embedding videos is easy. You just need to copy and paste the embed code or add the URL to WordPress with the system doing the rest. However, this means you will need to update the embed code or URL every time you create a new video.
This can be a tedious, time-consuming process, especially if you produce a lot of content on YouTube. In this case, using the plugin to display the latest YouTube videos in WordPress is much easier.
Because it's automatic, you don't have to worry about changing code or URLs.
Create video content from your own
Many new web developers are always looking for ways to make money from their websites, YouTube channels are likely to fit.
Creating your own YouTube channel will significantly increase your monetization options, while creating high-quality video content that will increase customer trust with your WordPress website. Video content is becoming important to the success of the website.
Creating a YouTube channel is a great choice as well as WordPress is fully compatible, offering many customization options.