About this plugin
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: <theme>/sonido-gallery/layout-<slug>.php and item.php
Credits
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.
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.
com/privacy