Blocks & options

Gallery Z adds three blocks and one Query Loop variation. The photos inside a gallery stay ordinary core blocks, so everything core offers for Image, Query Loop and Featured Image keeps working.

BlockWhat it does
Filterable Gallery
gallery-z/gallery
The container. Lays out its content in one of five layouts, with sizes per device, captions, hover effects, a lightbox and filter animations.
Gallery Filter
gallery-z/filter
Buttons or a dropdown that filter one gallery, or every gallery on the page. Place it anywhere – above, below or beside the gallery.
Gallery Media Query
gallery-z/media-query
Media Library images by Gallery Category, inside a gallery. New uploads show up without editing the page.
Gallery Posts
core/query variation
Posts as gallery items, built from the regular Query Loop, Post Template and Featured Image blocks.

Images, posts and media in one gallery

A gallery can hold Image blocks, a Gallery Posts query and a Gallery Media Query side by side. On the front end the groups dissolve into one shared grid (display: contents), so one filter and one lightbox cover all of them. Each post item links to its page; post titles and excerpts use the same caption styles as image captions.

Sizes marked “per device” have a desktop, tablet (under 782px) and mobile (under 600px) value; the device switcher in the panel is tied to the editor’s preview size. Defaults come first.

PanelOptionValues
LayoutLayoutmasonry, rows, grid, carousel, accordion (picker with diagrams)
Columnsper device: 3 · 2 · 1
Row heightper device: 240 · 200 · 160 px – the row, tile, slide, card or strip height, depending on the layout
Row size (grid)aspect ratio, fixed height
Aspect ratio (grid)1; tablet and mobile “same as larger screens” or their own
ItemsClick behaviorlink, lightbox, media file, none
Open in new taboff (link and media file)
Hover effectzoom, none, lift, color on hover, dim others
Reveal on scrolloff; rise, fade, zoom, blur, tilt up, wipe, pop, flip, slide, iris (masonry, rows, grid, carousel)
Stagger2.5 rem (0–6): the scroll distance between neighbours starting; 0 brings a row in together (masonry, rows, grid, with reveal on)
LightboxStyledark, light, frosted (blurred page behind)
Opening animationzoom from thumbnail, fade, none
Captions, image counteron, on
Colorsbackground, text and icons
CaptionsPresetsNo captions, Theme caption, Card, Gradient overlay, Hover reveal, Solid bar, Frosted glass, Clean text
Positionhidden, below, on the image, on hover
Lookplain (gradient on images), solid, frosted glass, minimal
Alignment, sizestart, center, end; XS, S, M, L
Colorstext, background
FilteringFilter animationmove + fade, crossfade, slide, zoom, none
Gallery IDfor filter blocks to target
Filter byGallery Categories or any public taxonomy
Block supportswide and full alignment, anchor, text and background color, gap (row and column), corner radius

Click behavior

Link (the default) follows each image’s own link – nothing more. Set links per image with Link in the image’s block toolbar. When no image in the gallery has a link, the sidebar shows a warning, because clicks would do nothing; pick Lightbox or Media file instead if the photos should open larger.

The carousel and accordion have options of their own – arrows, autoplay, looping, centering and more. They are listed on the Layouts page.

Captions

Captions are hidden until you choose otherwise. A caption preset sets position, look, alignment and size in one click; each preset in the picker shows a small preview of its look. Presets only set regular attributes, so every value stays editable afterwards. Captions apply to image captions and to post titles and excerpts alike. A frosted-glass caption sits inset on the photo, and its corners follow the image’s corner radius (minus the inset), so the two curves stay parallel.

Set Click behavior to Lightbox and photos open in a native <dialog>: it zooms out of the thumbnail, pages through the photos that are currently visible (so it respects the filter) with the arrow buttons, arrow keys or a swipe, and shows the caption and a counter. Click the photo, press Esc or use the close button to close it. While it is open, the page behind doesn’t scroll.

Gallery Filter

PanelOptionValues
PresetsCompact chips, Tabs, Segmented control, Soft tags, Minimal links, Theme buttons, Theme links, Pills + dropdown on mobile, Dropdown – each with a small preview in the picker
StylesTheme button, Theme link, Soft, Pills, Segmented, Underline
AppearanceDisplay asbuttons, dropdown on mobile, dropdown
Button sizesmall, XS, M, L, theme
Dropdown labeltext
SettingsGalleryone gallery by ID, or all on the page
Taxonomy, categorieswhich terms to show, and in which order
“All” button, labelon, “All”
Countsoff; inline, badge, superscript; number and badge colors
Hide empty, multi-selecton, off
URL parametere.g. category → ?category=food, also rendered on the server
Block supportsalignment, layout (justification, orientation, wrap), gap, text, background and button colors, typography, border, shadow

The Theme button style (the default) uses your theme’s button element styles; Theme link uses its link color, hover and underline. Typography, border, shadow and the “Button” color from the block’s own settings apply to the buttons.

Gallery Media Query

Put it inside a Filterable Gallery to show Media Library images by category. Settings: categories, or Use the archive’s category (on a Gallery Category archive: that category and its children); number of images (24); order by date, title or random, ascending or descending; image size; link to none, the file or the attachment page; captions.

Gallery Posts

Insert a Query Loop and choose the Gallery Posts variation, or add posts or pages from the empty gallery. Each post becomes an item: its Featured Image, with the Post Title – and a Post Excerpt, if you add that block to the template – as the caption. Filter posts the same way as images – by Gallery Categories, which posts and pages share with media, or by any other taxonomy such as regular post categories.