“Automatic YouTube Gallery” is a lightweight, modern and responsive WordPress plugin that helps you adding dynamic YouTube galleries in your website.
Kindly follow the steps below to add a gallery in your website,
Step 1: Download & Install
- Download the plugin.
- From the “WordPress Admin Panel”, click on “Plugins => Add New”.
- Then, click on the “Upload Plugin” button. So, you can directly upload your plugin zip file.
- Use the “Browse” button to select the plugin zip file that was downloaded, and then click on “Install Now”.
- Once installed, click “Activate”.
Step 2: Configure YouTube API Key

The plugin uses “YouTube Data API” to dynamically get videos from the YouTube website. An API Key is required to use its API. Luckily, the API is FREE. Kindly follow this link to get your own API Key.
Then, go to the plugin’s dashboard by clicking the YouTube Gallery menu from your WordPress Admin Panel and add the API Key you’ve created. Then, click on the “Proceed” button.
Step 3: Build your Gallery

Once the API Key has been added, the plugin will add a gallery shortcode builder to the plugin dashboard using which you can start building your gallery shortcode. Simply build your gallery shortcode and add it in your POST/PAGE where you like to show the gallery.
That’s it. Simple, Easy Huh?
NOTE: If your website uses the WordPress Gutenberg editor, then you can build the gallery directly in your POST/PAGE by using our Gutenberg Block.
Learn using an Example
It’s always better to learn using an example. Kindly refer the steps below to build a gallery that displays CARTOON videos dynamically from the YouTube website.
We assume that you have configured your YouTube API Key.
- Go to the plugin’s dashboard.
- Click on the “General” tab from the builder.
- Select “Search Terms” from “Source Type” drop-down.
- Enter “Cartoon” in the “Search Terms” text field.
- Then, select “Day” from the “Refresh the data every (Cache time)” option. This is to avoid frequent API calls each time the gallery loads. We have configured to CACHE the API response for 1 DAY. So, the next time you access the gallery, the plugin gets the data from the CACHE. After 24 hours (1 DAY), the plugin automatically clears the cached data, fetches & stores the new response from the YouTube server.
- That’s it for a basic gallery. You should see 2 more optional tabs. The fields under those tabs are optional. When you leave those fields untouched, the plugin will use the global setting values of them configured under the plugin’s settings menu. So, just edit only the necessary fields.
- Finally, click on the “Generate Shortcode” button.
You should get a popup with the shortcode you need to use in your POST/PAGE. Simply copy the shortcode and add it in your POST/PAGE and look at the front-end.
Congrats, you have built your first gallery.
Notes
- There is a “500 videos limit” restriction when using YouTube’s SEARCH API. So, If you’re using the “Search Terms” source type, only 500 videos can be shown in maximum. All other types can show unlimited videos.
- Due to YouTube API restrictions, the “Slider” or “Playlister” gallery can show only 50 videos at the moment. But, no worries. We will have the option to show more videos on these themes in the future. All other themes can show unlimited videos using the pagination option.