Two shortcodes. One renders a saved display; the other queries the library inline without saving anything.

Missing display id.

the saved displayoverride any layout keyoverride how many
Any display setting can be overridden on the page, for that page only.

jmzg_gallery

100 items
Rolling Green Hills and Trees
Rolling Green Hills and TreesNature / March 1, 2026 / Illustrated
Misty Mountain Lake
Misty Mountain LakeNature / March 1, 2026 / Illustrated
Alpine Peaks Pine Forest
Alpine Peaks Pine ForestNature / March 1, 2026 / Illustrated
Mossy Waterfalls
Mossy WaterfallsNature / March 1, 2026 / Illustrated

Renders saved display 1. Every setting on that display can be overridden inline, and the override applies to this one placement — the saved display is untouched.

100 items
Image Galleries That Load Fast
Image Galleries That Load Fast
Custom Fields for Everyday Sites
Custom Fields for Everyday Sites
Elementor vs the Block Editor
Elementor vs the Block Editor
elementor-vs-the-block-editor-demo.webp
elementor-vs-the-block-editor-demo.webp
Building Post Grids Without Code
Building Post Grids Without Code
Backups You Will Actually Restore
Backups You Will Actually Restore
Speeding Up a Slow WordPress Site
Speeding Up a Slow WordPress Site
Choosing a Theme That Grows With You
Choosing a Theme That Grows With You

Which means one display can serve a full gallery page, a three-across strip on the homepage, and a compact eight-photo block in a sidebar, all from the same saved settings.

Display keys you can override

Which itemsfilters, search, kind, orderby, order, limit
Layoutstyle, columns, gap, radius, crop, link, list_layout, list_cols, list_ratio
Captionscaptions, caption_pos, cap_sep, cap_val_sep
Visitor controlsfilter_bar, search_box, sort_box, kind_box, pagination, per_page
Procaption_layout, cap_before, cap_after, cap2_before, cap2_after, cap_font, cap_size, cap_color, cap_weight, cap_italic and their cap2_ equivalents, bg, card_bg, hover_effect, hover_strength, hover_speed, hover_tint, multi_download, dl_label

jmzg_media

An ad-hoc gallery with no saved display behind it. Any field key becomes a filter, and any display key sets the layout.

Nothing found.

Nothing found.

Nothing found.

It defaults to 12 items, no pagination, and no visitor controls. Good for dropping a handful of relevant photos into an article. For anything you will reuse or restyle later, save a display instead — a shortcode you have to find and edit in six places is a shortcode you will get wrong in one of them.

Block theme templates

Two more shortcodes exist for building custom archive and single templates in the Site Editor:

100 items
Rolling Green Hills and Trees
File Name: Rolling Green Hills and TreesInfo Nature / March 1, 2026 / Illustrated
Misty Mountain Lake
File Name: Misty Mountain LakeInfo Nature / March 1, 2026 / Illustrated
Alpine Peaks Pine Forest
File Name: Alpine Peaks Pine ForestInfo Nature / March 1, 2026 / Illustrated
Mossy Waterfalls
File Name: Mossy WaterfallsInfo Nature / March 1, 2026 / Illustrated

They render the body of the archive page and of a single item page respectively, so you can wrap them in your own header, footer and layout blocks.

Notes

  • Attribute values with spaces need quotes: album="Italy 2019".
  • Several values for one filter are separated by a comma: people="Ana,Bea".
  • captions takes a comma-separated list of field keys, with title allowed alongside them.
  • Both shortcodes work anywhere shortcodes work: the block editor’s shortcode block, a classic editor, a text widget, Elementor’s shortcode widget, or a template through do_shortcode().
  • Assets load only on pages that actually contain a gallery.