“Automatic YouTube Gallery” is a lightweight, modern and responsive WordPress plugin that helps you building dynamic video galleries. 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
An YouTube API Key is required to automate your gallery. Kindly follow this link to get your API Key. Then, add it to the plugin’s settings page.
Step 3: Build your Gallery
Finally, this is the time to build your gallery. No extra steps. Unlike other gallery plugins, you can start building your gallery directly in your POSTS / PAGES.
Simply select the POST / PAGE in which you like to add the gallery. Use the GUTENBERG BLOCK of the plugin and start building your awesome.
The block contains 3 sections / panels.
- Gallery (optional)
- Player (optional)
All the options in the block are self explanatory.
Let us build a sample gallery using Gutenberg
We will build a gallery that automatically displays CARTOON videos from the YouTube website.
- Add an “Automatic YouTube Gallery” block to your editor.
- Click the “Source” panel from the right side inspector tools.
- Select “Keyword” from “Source Type” drop-down.
- Enter “Cartoon” in the “Enter a Search Keyword” 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 the block to CACHE the API response for 1 DAY. So, the next time you access the gallery, the block 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. Easy Huh?
Let us customize the look of the gallery now,
- Click the “Gallery (optional)” panel from the right side inspector tools.
- Select “Slider” from the “Select Theme” drop-down. NOTE: If you’re using the FREE version, you would only see the “Classic” option.
- Configure other options as you need. You can see the gallery gets updated in the editor each time you edit a block option. This really speeds up your development. Nice Huh?
Wait, there is another panel “Player (optional)”,
This section allows customizing the player’s behavior such as “Autoplay”, “Loop”, etc.
To keep up this tutorial simple we finish from here. Please go through all the options to experience the full capability of the block. All the options are self-explanatory and there is a hint next to each setting for better understanding. If you find anything hard, please describe your issue and submit a ticket, we’re happy to help. You should receive the reply within 24 hours (except Sunday).
Shortcode Builder & Sidebar Widget
We love the OLD classic WP Editor. So, there is a Shortcode Builder for the OLD editor. The builder looks same as the Gutenberg block editor.
Additionally, the PRO version has a widget named “Automatic YouTube Gallery” that allows you to add galleries in your website sidebars.
- You may notice 2 tabs “Gallery” and “Player” in the plugin’s settings page. They are the global (default) settings. For example, if you didn’t select any “Theme” when building a gallery using our “Gutenberg Block”, the plugin automatically uses the theme configured in the settings page.
- There is a “500 videos limit” restriction when using YouTube’s SEARCH API. So, If you’re using the “Keyword” 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 have only 50 videos. But, no worries. We will find a way to display more videos in these themes in future. All other themes can show unlimited videos using the pagination option.