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
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
Getting Started With the Block Editor
Getting Started With the Block Editor
Looping Videos for Lobby Screens
Looping Videos for Lobby Screens
Adding Captions to Every Video
Adding Captions to Every Video
Cutting Short Videos for Social
Cutting Short Videos for Social
Animated Text That Grabs Attention
Animated Text That Grabs Attention
Colour Grading for a Consistent Brand
Colour Grading for a Consistent Brand
Removing Backgrounds Cleanly
Removing Backgrounds Cleanly
Exporting Images for the Web
Exporting Images for the Web
Batch Editing Product Photos
Batch Editing Product Photos
Building a Type Scale
Building a Type Scale
Self-Hosting Web Fonts
Self-Hosting Web Fonts
Line Length and Readability
Line Length and Readability
Pairing Fonts That Work Together
Pairing Fonts That Work Together
Accessible Contrast Made Easy
Accessible Contrast Made Easy
Building a Simple Colour Palette
Building a Simple Colour Palette
Using White Space With Purpose
Using White Space With Purpose

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
Image Galleries That Load Fast
File Name: Image Galleries That Load Fast
Custom Fields for Everyday Sites
File Name: Custom Fields for Everyday Sites
Elementor vs the Block Editor
File Name: Elementor vs the Block Editor
elementor-vs-the-block-editor-demo.webp
File Name: elementor-vs-the-block-editor-demo.webp
Building Post Grids Without Code
File Name: Building Post Grids Without Code
Backups You Will Actually Restore
File Name: Backups You Will Actually Restore
Speeding Up a Slow WordPress Site
File Name: Speeding Up a Slow WordPress Site
Choosing a Theme That Grows With You
File Name: Choosing a Theme That Grows With You
Getting Started With the Block Editor
File Name: Getting Started With the Block Editor
Looping Videos for Lobby Screens
File Name: Looping Videos for Lobby Screens
Adding Captions to Every Video
File Name: Adding Captions to Every Video
Cutting Short Videos for Social
File Name: Cutting Short Videos for Social
Animated Text That Grabs Attention
File Name: Animated Text That Grabs Attention
Colour Grading for a Consistent Brand
File Name: Colour Grading for a Consistent Brand
Removing Backgrounds Cleanly
File Name: Removing Backgrounds Cleanly
Exporting Images for the Web
File Name: Exporting Images for the Web
Batch Editing Product Photos
File Name: Batch Editing Product Photos
Building a Type Scale
File Name: Building a Type Scale
Self-Hosting Web Fonts
File Name: Self-Hosting Web Fonts
Line Length and Readability
File Name: Line Length and Readability
Pairing Fonts That Work Together
File Name: Pairing Fonts That Work Together
Accessible Contrast Made Easy
File Name: Accessible Contrast Made Easy
Building a Simple Colour Palette
File Name: Building a Simple Colour Palette
Using White Space With Purpose
File Name: Using White Space With Purpose

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.