| 开发者 | mrtuxit |
|---|---|
| 更新时间 | 2026年9月27日 19:37 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
sonido-gallery)[sonido_gallery id="123"].
Attributes:
id (required) - gallery post ID, found in the URL of each Gallery edit pagesize - 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)sonido_gallery_layout — resolve the layout slug per rendersonido_gallery_shortcode_atts — modify shortcode attributessonido_gallery_item_html / sonido_gallery_caption_html — replace item and caption markupsonido_gallery_allowed_types + sonido_gallery_normalize_custom_item — add custom item types<theme>/sonido-gallery/layout-<slug>.php and item.phppublic/js/vendor/photoswipe.LICENSE.txt).
sonido-gallery folder to /wp-content/plugins/.[sonido_gallery id="123"] shortcode from the settings page and paste it into any post or page.Yes. Each [sonido_gallery id="..."] uses its own ID and has its own independent set of images.
Yes. Add YouTube URLs or upload video files from the Media Library; each video can have a custom cover image. Clicking a video thumbnail opens a dedicated player modal.
The free version ships a responsive CSS grid. Masonry, Justified and Carousel layouts are available in Sonido Gallery Pro, together with a per-gallery layout selector.
Yes. The plugin uses the regular WordPress Media Library; nothing is sent to third-party services. YouTube embeds load from YouTube only when a video is actually played.
Yes. If JavaScript is disabled, clicking a thumbnail opens the full-size image in the browser. If the lightbox toggle is off in the settings, the lightbox script is not loaded.
Yes. Sonido Gallery Pro adds Masonry, Justified and Carousel layouts, Vimeo support and a per-gallery layout selector. The free version is complete on its own: Pro is for when you need more presentation options or premium support.
The bundled PhotoSwipe version is updated by the plugin author in each release; for manual updates replace the three files in public/js/vendor/ (keeping the MIT license text).
layout shortcode attribute.sonido_gallery_layout, sonido_gallery_shortcode_atts, sonido_gallery_item_html, sonido_gallery_caption_html, sonido_gallery_item_template_path, sonido_gallery_template_path, sonido_gallery_after_render, sonido_gallery_loaded.sonido_gallery_allowed_types, sonido_gallery_normalize_custom_item, sonido_gallery_video_item_props), with front-end and admin JS hooks.Sonido_Gallery_Layouts::get_label() helper).