Two shortcodes. One renders a saved display; the other queries the library inline without saving anything.
Any display setting can be overridden on the page, for that page only.
jmzg_gallery
Rolling Green Hills and TreesNature / March 1, 2026 / IllustratedMisty Mountain LakeNature / March 1, 2026 / IllustratedAlpine Peaks Pine ForestNature / March 1, 2026 / IllustratedMossy 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.
Image Galleries That Load FastCustom Fields for Everyday SitesElementor vs the Block Editorelementor-vs-the-block-editor-demo.webpBuilding Post Grids Without CodeBackups You Will Actually RestoreSpeeding Up a Slow WordPress SiteChoosing 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.
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:
File Name: Rolling Green Hills and TreesInfo Nature / March 1, 2026 / IllustratedFile Name: Misty Mountain LakeInfo Nature / March 1, 2026 / IllustratedFile Name: Alpine Peaks Pine ForestInfo Nature / March 1, 2026 / IllustratedFile 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.