
內容簡介
Sonido Gallery 讓使用者可以在 WordPress 控制台中輕鬆建立美觀且響應式的圖片和影片畫廊。此外掛不需要額外的建構工具,並且使用輕量級的 CSS 網格呈現,支持多種媒體格式。
【主要功能】
• 自訂文章類型「Galleries」管理多個畫廊
• 從媒體庫選擇圖片或新增影片
• 支援 YouTube 和自託管影片檔案
• 提供三種縮圖大小選擇
• 使用 PhotoSwipe v5 輕箱,支援觸控和鍵盤導航
• 響應式 CSS 網格,支持每個實例的欄位覆蓋
外掛標籤
開發者團隊
原文外掛簡介
Sonido Gallery lets you build beautiful, responsive image and video galleries entirely from the WordPress admin. No builders, no bloat: images stay in your Media Library, galleries render with a lightweight CSS grid and open in a PhotoSwipe lightbox with zoom, swipe and keyboard navigation.
Features
Custom post type “Galleries” for managing multiple galleries
Pick images from the Media Library, or add videos
Supports YouTube and self-hosted video files, with custom cover images
Three thumbnail sizes: thumbnail / medium / large
HTML-formatted captions (bold, italic, links, line breaks)
PhotoSwipe v5 lightbox with touch, zoom, and keyboard navigation
Responsive CSS grid with per-instance column override
Developer-friendly layout registry: register new layouts with one filter
Translation ready (text domain sonido-gallery)
Take it further with Sonido Gallery Pro
Pro adds layouts and video capabilities that don’t fit a plugin meant to stay lightweight:
Masonry layout — CSS columns that flow vertically, perfect for mixed-ratio photography
Justified layout — Google-Photos-style rows with a shared height
Carousel layout — horizontal scroll-snap slider with prev/next buttons
Vimeo videos — add Vimeo URLs to any gallery, with cached thumbnails and in-modal playback
Per-gallery layout selector — choose the layout straight from the gallery editor
Theme-overridable templates — every layout and the item markup can be replaced from your theme
Pro is a separate paid plugin, licensed per site, with automatic updates and priority support. All layouts keep working with the same [sonido_gallery] shortcode you already use — switching is as simple as changing one attribute. See Pro →
Shortcode
Embed a gallery with [sonido_gallery id="123"].
Attributes:
id (required) – gallery post ID, found in the URL of each Gallery edit page
size – thumbnail | medium | large (overrides global default)
columns – 1 to 6 (overrides global default)
layout – layout slug registered in the registry (grid, or masonry / justified / carousel with Sonido Gallery Pro)
For convenience, the plugin shows the shortcode on the settings page together with a copy/paste example.
For developers
The plugin exposes a small, stable extension API:
sonido_gallery_layout — resolve the layout slug per render
sonido_gallery_shortcode_atts — modify shortcode attributes
sonido_gallery_item_html / sonido_gallery_caption_html — replace item and caption markup
sonido_gallery_allowed_types + sonido_gallery_normalize_custom_item — add custom item types
Theme overrides:
Credits
The bundled lightbox is PhotoSwipe v5 by Dmytro Semenov, released under the MIT License (license text included in public/js/vendor/photoswipe.LICENSE.txt).
Sonido Gallery Pro
Upgrade when you need more: Sonido Gallery Pro adds Masonry, Justified and Carousel layouts, Vimeo video support and a per-gallery layout selector. Distributed separately with automatic updates and priority support.
External services
This plugin shows YouTube video items inside galleries, which relies on two external services operated by Google LLC:
YouTube thumbnails. When a gallery contains a YouTube video item, the visitor’s browser loads the video’s preview image directly from i.ytimg.com so the gallery can display a thumbnail without storing a copy in your site.
YouTube embedded player. When a visitor opens a YouTube item, the plugin loads YouTube’s embedded iframe player from youtube.com to play the video inside the lightbox.
What data is sent: the YouTube video ID (part of the URL you add to the gallery) is included in the requests the visitor’s browser makes to i.ytimg.com and youtube.com. The requests happen only when a visitor loads a page that renders a gallery containing that YouTube item. No plugin data is sent to any other third-party service, and no server-to-server requests are made.
The plugin does not connect to these services on your server; only the visitor’s browser makes those requests. YouTube may set its own cookies per its policies.
Service provided by Google LLC — YouTube Terms of Service: https://www.youtube.com/t/terms — Google Privacy Policy: https://policies.google.com/privacy
