Linux 软件免费装
Banner图

SDAweb Channels for YouTube

开发者 rstake
sdaweb
更新时间 2026年10月31日 17:10
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

video embed channel youtube live stream

下载

1.4.16 1.4.35 1.5.11 1.5.12 1.4.10 1.4.29 1.4.17 1.5.4 1.4.8 1.4.14 1.4.15 1.4.20 1.4.24 1.4.25 1.4.26 1.4.27 1.4.13 1.4.28 1.4.38 1.5.0 1.4.12 1.5.1 1.4.7 1.5.6 1.4.18 1.4.5 1.4.6 1.4.9 1.5.5 1.5.8 1.5.9 1.5.10 1.4.11 1.4.34 1.4.37 1.5.14 1.5.16 1.5.18 1.5.19 1.5.2 1.5.7 1.4.19 1.4.36 1.5.15 1.5.17 1.5.20 1.5.3 1.5.21 1.6.0

详情介绍:

SDAweb Channels for YouTube turns any public YouTube channel into a fast, privacy-friendly video section on your WordPress site. Add channels by pasting their URL, pick a layout, and drop a shortcode or the block into any page. Videos are fetched in the background and stored in your own database, so visitors never trigger a YouTube API call and pages load instantly. Built and maintained by SDAweb for church, school and community sites that stream regularly, which is why live and upcoming broadcasts are a first-class feature rather than an afterthought. Why site owners pick it Layouts and playback Live and upcoming streams Channel management Shortcodes Common attributes for the first three: count, columns, layout, sort, player, pagination, per_page, show_stats, show_duration, show_channel, show_description, exclude_shorts, live_only and (for multi-channel shortcodes) ids. The live shortcode takes ids, count, columns, player, show_channel, show_stats, show_duration, show_description and empty_message. The Shortcode Builder on the Dashboard writes them for you, and the Settings page has a full reference table with examples. Block editor The YouTube Channel block offers the same choices as the shortcodes – channel selection, layout, columns, count, sort, player, pagination, Live Only, Show Description and Exclude Shorts – with a styled live preview in the editor. Customisation Privacy and performance

安装:

  1. Upload the sdaweb-channels-for-youtube folder to /wp-content/plugins/, or install it from Plugins → Add New.
  2. Activate the plugin through the Plugins menu.
  3. Go to YouTube Channels → Settings, paste your YouTube Data API v3 key and click Test Connection. The page includes a step-by-step guide for getting a free key.
  4. Go to YouTube Channels → Channels and add your first channel by URL, handle or ID.
  5. Use the Shortcode Builder on the Dashboard, or insert the YouTube Channel block in the editor.

屏幕截图:

  • Grid layout with lazy-loaded thumbnails and Load More
  • Tabs layout with the avatar strip navigation
  • Lightbox player with previous/next navigation
  • Live and upcoming streams with badges and countdown
  • Settings: appearance options with colour pickers and style previews

升级注意事项:

1.6.0 Adds an Exclude Shorts option, a YouTube connection health check, cache clearing that works with Redis, better live detection with many channels, native lazy thumbnails, keyboard tabs, a styled block preview and many fixes. Blocks on the default layout now follow the Default Layout setting. 1.5.21 Fixes the lightbox close button on phones: it sat partly outside the video frame and looked cut off, and in landscape on small phones it was pushed off the top of the screen. 1.5.20 Restores the scheduled video refresh if its cron jobs have gone missing (site clone, cron clean-up, multisite), corrects the description of the Auto player, and fixes keyboard focus in the lightbox and slider. 1.5.19 Fixes a case where a bad answer from YouTube could empty a channel's feed until the next refresh, and makes videos added by "Load More" follow the feed's player and display settings. 1.5.18 Maintenance release: removes a Plugin Check warning introduced in 1.5.17. No change in behaviour. 1.5.17 Fixes the "Load More" button disappearing on sites with a page cache, and channels being refreshed far less often than the refresh-interval setting says (especially with more than three channels). 1.5.16 Shorts detection now uses the channel's Shorts list (YouTube's 3-minute Shorts were being missed and short regular videos mislabelled), and the "maxres" thumbnail setting now serves the real 1280×720 image. Run Refresh All to apply to cached videos. 1.5.15 Hides never-aired live broadcast placeholders that showed up as dead cards and opened to a YouTube "player configuration error" (Error 153) when clicked. Live and upcoming streams are unaffected. 1.5.14 Upcoming streams now drop off within an hour of their start time (was 6h) and no longer show a stale countdown. Also loads the stylesheet earlier to remove the flash of unstyled cards, plus admin polish. 1.5.13 Fixes Load More returning wrong videos on channels/feeds with live streams, keeps feed ids scoped when paginating, and stops sliders truncating when Load More is set. 1.5.6 Fixes lightbox video playback in Firefox, Vivaldi, and on iPad. The lightbox no longer loads YouTube's IFrame API script, which was being blocked by tracker protection in those browsers. 1.4.26 Fixes video playback not working on tablets (iPad) in portrait orientation when using the auto player mode. 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, and is it free?

From the Google Cloud Console: create a project, enable the YouTube Data API v3 and create an API key. It is free: Google gives every project 10,000 quota units per day. The Settings page has a step-by-step guide with the exact URL pattern to restrict the key to your site.

How much of the quota does the plugin use?

A site with one channel uses about 300 units a day, almost all of it for the 5-minute live check. Ten channels on the default 6-hour refresh use roughly 400 units. Broadcast Boost adds about 150 units per channel for every hour it is active. Visitors never use quota. The Dashboard shows the state of the connection, and if the quota is ever used up, cached videos keep showing until Google resets the quota at midnight Pacific time.

How do I hide YouTube Shorts?

Add exclude_shorts="true" to the shortcode, for example [sdawchfo_feed exclude_shorts="true"], switch on Exclude Shorts in the block, or tick the box in the Shortcode Builder. Shorts are recognised from the channel's own Shorts list, so Shorts up to three minutes long are caught too. To hide them site-wide without editing shortcodes, add this to your theme's functions.php: add_filter( 'sdawchfo_video_query_args', function( $args ) { $args['exclude_shorts'] = true; return $args; } );

How often are videos refreshed?

By default every 6 hours; choose anything from 1 to 24 hours in Settings. Live status is checked every 5 minutes. Channel name, avatar and subscriber count are refreshed once a day. Use Refresh or Refresh All on the Channels page to update immediately.

My videos are not updating. What should I check?

  1. Open YouTube Channels → Dashboard: the YouTube API card tells you whether the last request succeeded and, if not, why (invalid key, quota, website restriction).
  2. Check the Status column on the Channels page for a per-channel error.
  3. WordPress runs scheduled jobs only when someone visits the site. On a quiet site set up a real server cron (see the next question). Tools → Site Health also reports when one of the plugin's scheduled jobs is missing.

How do I set up a real server cron?

Add define('DISABLE_WP_CRON', true); to wp-config.php and create a cron job on your server that calls https://yoursite.com/wp-cron.php?doing_wp_cron every minute. The Settings page shows the exact command for your site. This is strongly recommended if you use Broadcast Boost.

How does live-stream detection work?

Every 5 minutes the plugin asks YouTube about the videos that could be live: known live or upcoming streams, recent uploads, and anything new in the channel's RSS feed (which costs no quota). Live streams get a red LIVE badge with the viewer count; scheduled streams get a blue UPCOMING badge with a countdown. They are automatically excluded from the normal shortcodes and shown by [sdawchfo_live] or live_only="true".

What is Broadcast Boost?

A weekly time window during which the live check runs every minute instead of every 5, so a stream that starts at 10:30 appears on your site within a minute. Set the day and the time range in Settings. Outside the window the normal 5-minute check continues.

Which player should I choose?

Auto (default) opens a lightbox on desktop and tablet and plays inline on phones; good for most sites. Lightbox always uses the overlay with previous/next navigation. Inline always plays inside the card and offers an expand button. Link sends visitors to YouTube in a new tab. Set it per shortcode or block.

Does it work with caching plugins?

Yes. Page caches (WP Rocket, LiteSpeed Cache, Cloudflare, host caches) serve the plugin's HTML like any other content, and Load More keeps working on cached pages. Object caches (Redis, Memcached) are supported; the plugin's own caches are invalidated correctly when videos or settings change.

How do I control the order of tabs and sections?

Drag channels into the order you want on the Channels page; that order is used everywhere. For a different order on one page, list channel IDs in the shortcode: [sdawchfo_channels layout="tabs" ids="UCabc,UCxyz"].

Can I show more than 50 videos?

Yes, up to 100 per channel with count="100". Combine it with pagination="loadmore" and per_page to show a first batch and load the rest on demand.

Can I adapt the look to a dark theme?

Set the CSS variables on your body or theme wrapper, for example --sdawchfo-card-bg: #1e1e1e; --sdawchfo-surface: #1e1e1e; --sdawchfo-text: #f3f3f3; --sdawchfo-muted: #b0b0b0; --sdawchfo-border: #333;. Badge, button and tab colours have their own settings under Settings → Appearance.

Can I change the texts shown to visitors?

Yes. Settings → Frontend Labels lets you edit all 29 texts, from the Load More button to the screen-reader announcements, in any language and without translation files.

What happens to deleted or private videos?

They are removed from your site at the next refresh of that channel. If YouTube ever answers with something that is not video data, the plugin keeps the cache instead of emptying it and shows the error on the Channels page.

Can I move my setup to another site?

Yes. Settings → Import / Export downloads a JSON file with channels and settings (the API key is not included). Import it on the other site and run Refresh All.

Is my API key visible to visitors?

No. The key is used only on your server and is never sent to the browser. Since 1.6.0 it is not even printed into the settings page; the field shows a masked hint instead.

Videos do not play in Vivaldi or Brave. Why?

The plugin uses YouTube's privacy-enhanced domain (youtube-nocookie.com) and no tracking scripts, which satisfies most blockers. If a video still does not play, the browser's own blocker is stopping the YouTube player itself; allow it for your site via the shield icon.

更新日志:

The most recent releases are listed here. The complete history is in changelog.txt in the plugin folder. 1.6.0 1.5.21 1.5.20 1.5.19