
Admin Panel Setting page screenshot-1.jpg
Display YouTube Shorts directly on your WordPress site with a clean, responsive layout that works on all devices. Simply add your channel handle, customize the appearance, and use the shortcode to showcase shorts anywhere. The plugin automatically caches video data to improve loading speed, provides mobile-optimized views, and lets you control exactly which elements appear (titles, view counts, durations, etc.) to match your site’s design.
Key Features
- Channel Integration: Display Shorts from any YouTube channel using the channel handle
- Responsive Design: Optimized grid layout for desktop and smooth slider for mobile devices
- Customizable Display: Show or hide video titles, view counts, timestamps, and more
- Caching System: Built-in caching to optimize performance and reduce API calls
- Easy Implementation: Simple shortcode to add Shorts anywhere on your site
- Custom Styling: Adjust colors and layout to match your website’s design
- Lightweight & Fast: Optimized code for quick loading times
Use Cases
- Content creators showcasing their latest Shorts
- Businesses featuring product demonstrations or testimonials
- Educators displaying educational content
- Event websites highlighting event clips
- Bloggers enhancing posts with relevant video content
How to Use
Simply use the [dyshorts]
shortcode to display Shorts on any page or post. You can customize the display using various shortcode attributes:
[dyshorts channel="ChannelName" max="10" columns="4" cache="3600"]
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- YouTube API Key (for accessing channel data)
Shortcode Parameters
The plugin supports the following shortcode parameters:
channel
– Channel handle without the @ symbol (e.g., “yourchannelname”)max
– Number of Shorts to display (1-50)columns
– Number of columns on desktop (2-6)cache
– Cache duration in seconds (minimum 300)
Display Options
From the settings page, you can control these display elements:
- Show/hide video title
- Show/hide view count
- Show/hide time ago
- Show/hide duration overlay
- Show/hide “Watch on YouTube” link
- Show/hide channel header section
- Show/hide channel avatar
- Show/hide channel name and subtitle
- Show/hide “Visit Channel” button
Colors and layout can also be customized to match your website’s design.
External Services
This plugin connects to the YouTube Data API v3 to retrieve video data from YouTube channels. This API connection is necessary to display YouTube Shorts on your WordPress site.
YouTube Data API v3
- Service Purpose: The plugin uses YouTube Data API v3 to search for channels, retrieve video lists, and get detailed information about YouTube Shorts videos.
- When API Calls Happen: API requests are made when:
- A page containing the shortcode is loaded and the cached data has expired
- Plugin settings are updated (to refresh the data)
- Data Sent:
- YouTube channel handles/IDs provided in the plugin settings or shortcode
- API key (provided by you in the plugin settings)
- Standard API request parameters as required by YouTube API
- Data Retrieved:
- Channel information (title, thumbnail URL)
- Video details (title, duration, view count, publish date)
- No personal user data is collected or transmitted
- Terms of Service and Privacy:
The plugin caches all requests to minimize API usage and improve performance. The cache duration is configurable in the plugin settings.
Note: You will need to create your own Google API key with YouTube Data API v3 enabled to use this plugin. The plugin includes fallback data if no API key is provided, but live data from YouTube channels requires a valid API key.