
內容簡介
SK Playlist Embed 外掛讓您能夠在 WordPress 網站上顯示 YouTube 頻道影片和播放清單,利用 YouTube Data API v3 提供的功能,支援多種佈局選擇及自訂設定,提升網站的多媒體內容展示。
【主要功能】
• 顯示任意 YouTube 頻道或播放清單的影片
• 提供網格和列表兩種佈局選項
• 支援 1-5 列的靈活佈局設計
• 響應式設計,適用於桌面、平板和手機
• 自動播放的燈箱模式
• 支援延遲加載以優化效能
外掛標籤
開發者團隊
原文外掛簡介
SK Playlist Embed lets you display YouTube channel videos and playlists on your WordPress site using the YouTube Data API v3. Choose from grid or list layouts with flexible columns (1-5), frontend pagination, and a centered video modal.
Features:
Display videos from any YouTube channel or playlist
Two layout options: Grid and List
Flexible columns (1-5) in grid layout
Responsive design — desktop, tablet, and mobile
Lightbox modal with autoplay
Lazy loading for optimal performance
Transient-based caching with configurable duration
WP-Cron auto-refresh support
Daily scheduled cache refresh
REST API endpoints for admin operations
Live preview in the admin settings
SEO-friendly markup
Shortcode: [skplem type="channel|playlist" id="YOUR_ID"]
Obtaining a YouTube API Key
Go to the Google Cloud Console.
Create a new project or select an existing one.
Enable the YouTube Data API v3.
Go to Credentials and create an API key.
Copy the key and paste it in the plugin settings.
Shortcode Usage
Basic usage:
[skplem type="channel" id="UC_CHANNEL_ID"]
With all options:
[skplem type="playlist" id="PL_PLAYLIST_ID" layout="grid" columns="3" max="12" thumbnail="medium" title="yes" description="yes" show_count="yes" paginate="yes" per_page="12"]
Attributes:
type — channel or playlist (required)
id — YouTube channel ID or playlist ID (required)
layout — grid or list (default: from settings)
columns — 1 to 5 (default: from settings)
max — max videos to show, 1 to 50 (default: from settings)
thumbnail — default, medium, or high (default: from settings)
title — yes or no
description — yes or no
show_count — yes or no
paginate — yes or no
per_page — videos per page (default: 12)
External Services
This plugin uses the YouTube Data API v3 (operated by Google) to fetch video metadata from YouTube channels and playlists.
Data sent: When you enter a Channel ID or Playlist ID, the plugin sends that ID along with your API key to the YouTube Data API v3 to retrieve video titles, descriptions, thumbnails, and publish dates. No personal data is transmitted.
Service links:
* YouTube Terms of Service
* Google Privacy Policy
* YouTube Data API v3 Documentation
