The Custom YouTube Feed plugin allows WordPress site owners to display videos from multiple YouTube channels and individual videos in an attractive grid layout. The plugin features pagination, popup video playback, and automatic caching for improved performance.
Key Features
- Multiple Channel Support: Add videos from multiple YouTube channels
- Individual Video Support: Include specific videos by URL
- Responsive Grid Layout: 3-column grid that adapts to screen size
- Popup Video Player: Lightbox-style playback with Magnific Popup
- Smart Caching: 24-hour cache to reduce API calls
- Easy Pagination: Automatic pagination for large video collections
- Admin Dashboard: Simple interface for managing channels and settings
Installation
- Upload the plugin files to your WordPress plugins directory (/wp-content/plugins/)
- Activate the plugin through the WordPress admin panel
- Navigate to Settings → YouTube Channels to configure your API key and channels
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- YouTube Data API v3 key (free)
Usage
Shortcode
Add videos to any post or page using the shortcode:
[youtube_videos]
Admin Settings
- API Key: Enter your YouTube Data API key (required)
- Videos Per Channel: Set how many videos to show from each channel
- Channel URLs: Add YouTube channel URLs (supports all URL formats)
- Individual Videos: Add specific video URLs
Cache Management
The plugin automatically caches videos for 24 hours. You can manually clear the cache from the admin panel.
Customization
CSS Styling
The plugin includes default CSS that can be overridden in your theme’s stylesheet. Key classes:
- .youtube-videos-grid – The main video container
- .youtube-video – Individual video items
- .youtube-pagination – Pagination controls
JavaScript
The plugin uses Magnific Popup for video playback. Customize the popup behavior by modifying the initialization in the shortcode output.
GitHub Repository
Support
For support, feature requests, or bug reports, please open an issue on GitHub.
License
GPLv2 or later