Linux 软件免费装
Banner图

SDAweb Channels for YouTube

开发者 rstake
sdaweb
更新时间 2026年3月8日 21:47
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

video embed channel youtube live stream

下载

1.4.6 1.4.9 1.4.11 1.4.16 1.4.17 1.4.10 1.4.12 1.4.13 1.4.14 1.4.15 1.4.18 1.4.5 1.4.7 1.4.8

详情介绍:

SDAweb Channels for YouTube is a lightweight, privacy-friendly way to showcase YouTube content on your WordPress site. Add any number of public YouTube channels and display their videos using shortcodes or a Gutenberg block. Videos are cached locally so visitor page views consume zero API quota. Layouts & Playback Live & Upcoming Streams Channel Management Shortcodes Four shortcodes cover every use case: All shortcodes support these attributes: count, columns, layout, sort, player, pagination, per_page, show_stats, show_duration, show_channel, and live_only. Additional Features Privacy & Performance

安装:

  1. Upload the sdaweb-channels-for-youtube folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to YouTube Channels > Settings and enter your YouTube Data API v3 key
  4. Click Test Connection to verify the key works
  5. Go to YouTube Channels > Dashboard or Channels to add your first channel
  6. Use the Shortcode Builder on the Dashboard to generate shortcodes, or add the Gutenberg block in the editor

屏幕截图:

  • Grid layout displaying videos from a single channel
  • Tabbed layout with multiple channels
  • Lightbox video player with navigation
  • Live and upcoming stream display with badges
  • Admin settings page with customizable labels

升级注意事项:

1.4.11 Fixes lightbox not visible on themes with CSS transform on body (The7, Visual Composer). Lightbox now renders outside all theme containers. 1.4.10 Fixes lightbox player not appearing on themes with CSS transforms on content wrappers. 1.4.9 YouTube embeds now use the privacy-enhanced youtube-nocookie.com domain, fixing playback in Vivaldi and other privacy-focused browsers. 1.4.8 Fixes incorrect player default in admin shortcode reference. Adds Getting Started guide for new users on the Dashboard. 1.4.7 Maintenance release with minor internal improvements. 1.4.6 Fixes landscape mobile: play and lightbox buttons now work correctly on phones in landscape orientation. 1.4.5 Channel reorder SQL now passes Plugin Check security validation. 1.4.4 WordPress.org Plugin Review compliance: proper escaping, WP_Filesystem, directory silencers, block editor i18n, and license standardization. 1.4.3 Channel reorder optimized to a single database query. 1.4.2 Major quality update: fixes N+1 queries, timezone bugs, cache key collisions, and accessibility gaps. Adds REST API limits, Gutenberg slider layout, dark theme support, and timeout-safe batch refresh. 1.4.1 RSS feed results are now cached for 15 minutes, significantly reducing HTTP requests during frequent live status checks. 1.4.0 New Auto player adapts to screen size (lightbox on desktop, inline on mobile). Landscape mobile gets optimized layouts. Private/deleted videos are now automatically purged from cache. Also adds tab navigation modes, Live Broadcast Boost, server cron guidance, and avatar strip. 1.3.1 Smarter live stream ordering: streams closest to the current time now appear first, so imminent broadcasts are no longer buried below old or far-future scheduled streams. 1.3.0 Live stream support: automatic detection of live and upcoming broadcasts, dedicated [sdawchfo_live] shortcode, RSS feed discovery, and import/export for easy migration. 1.2.0 Mobile experience upgrade: bottom sheet player, better touch navigation, and thumbnail loading fix for tabbed layouts.

常见问题:

Where do I get a YouTube API key?

Visit the Google Cloud Console, create a project, enable the YouTube Data API v3, and create an API key. Step-by-step instructions are included on the plugin's Settings page.

Is the API key free?

Yes. Google provides 10,000 free quota units per day. A typical site with 10 channels uses 300–500 units per day. Visitor page views use zero quota.

How often are videos refreshed?

By default every 6 hours. You can change this to anywhere from 1 to 24 hours in Settings. Live stream status is checked every 5 minutes automatically.

How does the live stream detection work?

The plugin checks for live and upcoming broadcasts every 5 minutes using the YouTube API and RSS feeds. Currently live streams show a red LIVE badge with viewer count. Upcoming streams show a blue UPCOMING badge with a countdown to the scheduled start time. Streams are automatically sorted by proximity to the current time, so the most imminent broadcasts always appear first regardless of when they were originally scheduled.

Do live streams appear in regular shortcodes?

No. Live and upcoming streams are automatically excluded from [sdawchfo_channel], [sdawchfo_channels], and [sdawchfo_feed]. Use [sdawchfo_live] to display them separately, or add live_only="true" to any shortcode to show only live content.

How do I control the tab order?

Drag channels into the desired order on the Channels page. This order is used for tabs and sections site-wide. To set a different order on a specific page, list channel IDs in the shortcode: [sdawchfo_channels layout="tabs" ids="UCabc,UCxyz"].

Can I display more than 50 videos?

Yes. Set count to up to 100 in the shortcode or Shortcode Builder. The plugin paginates through the YouTube API automatically.

Can I migrate settings between sites?

Yes. Use the Import/Export section on the Settings page to download a JSON file with your channels and settings, then upload it on another site. Videos are not included — they are re-fetched automatically.

Does this plugin work with caching plugins?

Yes. The plugin uses WordPress transients for its own internal cache, which is compatible with object caching plugins and page caching plugins.

What are the player modes?

The plugin offers four player modes, selectable in the Shortcode Builder or via the player attribute:

  • Auto (default) — Adapts to screen size: plays inline on desktop, opens a lightbox on mobile phones. Best for sites with mixed audiences.
  • Lightbox — Always opens a fullscreen overlay with prev/next navigation. Best for desktop-heavy audiences.
  • Inline — Always plays directly inside the video card with an expand-to-lightbox button. Best for mobile-heavy audiences.
  • Link — Opens the video on YouTube in a new tab. No on-site playback.

What happens to private or deleted videos?

The plugin automatically detects and removes them. When a channel is refreshed, any cached videos that YouTube no longer returns (because they were made private, deleted, or removed from the uploads playlist) are purged from your local database.

What are the tab navigation modes?

The tabs layout offers three navigation modes, configurable in Settings > Appearance:

  • Scroll (default) — A horizontally scrollable tab bar with arrow indicators. Works well with any number of channels.
  • Wrapping Pills — All channels are shown as pill buttons that wrap to multiple rows. Best when you have many channels and want them all visible at once.
  • Avatar Strip — A compact row of channel avatars with labeled names below. Long channel names are automatically truncated with a configurable truncation direction (show beginning or end).

What is Live Broadcast Boost?

Broadcast Boost increases the live status polling frequency from every 5 minutes to every 1 minute during a configurable time window. This is useful if your channels have a regular broadcast schedule (e.g. every Saturday from 10:30 to 13:00). Enable it in Settings and choose the day and time range. Outside the boost window, normal 5-minute polling continues. For best results, set up a real server cron that runs every minute.

How do I set up a real server cron?

WordPress uses a pseudo-cron that only runs when someone visits your site, which can cause delays. For reliable scheduling:

  1. Add define('DISABLE_WP_CRON', true); to your wp-config.php (before "That's all, stop editing!").
  2. Set up a cron job on your server (via cPanel, Plesk, or SSH) to run every minute: */1 * * * * wget -q -O /dev/null https://yoursite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
The plugin's Settings page shows your current cron status and provides the exact command for your site.

Videos don't play in Vivaldi. What's wrong?

As of version 1.4.9, the plugin uses YouTube's privacy-enhanced embed domain (youtube-nocookie.com) which resolves most Vivaldi playback issues. If you still experience problems, Vivaldi's built-in tracker and ad blocker may be blocking the embed. Click the shield icon in the address bar and disable the blocker for your site.

更新日志:

1.4.18 1.4.17 1.4.16 1.4.15 1.4.14 1.4.13 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 1.4.6 1.4.5 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.0