With Advanced Shortcodes, one page can show any gallery you pick. You add the shortcode to a page once. Then a link with a gallery’s ID in the page address opens that gallery, so you don’t need a separate page for each one.
Note: Advanced Shortcodes is a Modula Pro extension, included in the Trio plan and above. Switch it on in Modula → Extensions (how to switch on extensions).
Set up the Advanced Shortcodes page
Start by making the one page that will show your galleries. To place one fixed gallery on a page instead, see how to insert galleries in posts and pages.
- Go to Modula → Settings → Galleries.
-
Under Page with all galleries, click Copy next to the shortcode. The shortcode is
[[modula_all_galleries]]. A shortcode is a short tag that WordPress replaces with your content.
- Look at the Link parameter. This is the word used in the address. It is
gallery_idby default. - To use another word, type it and click Save changes. The Example line shows the new address.
- Go to Pages → Add New.
- Add a Shortcode block.
- Paste the shortcode into the block.
- Publish the page.
Link to one gallery on the page
Your page is ready. Now you can build the link that shows one gallery on it.
- Find the gallery’s ID. In Modula → Galleries, the Shortcode column shows it, for example
[modula id="89"]. For more ways to find it, see how to find your gallery ID. - Add
?gallery_id=and the ID to the address of your page:yoursite.com/galleries/?gallery_id=89. If you changed the link parameter, use your word instead ofgallery_id. - Use that address in your links, menus or buttons. The page then shows only that gallery.
What the page shows in other cases
Without the parameter in the address, the page shows all your published galleries, one under the other.
If no gallery has the ID in the address, the page says “No galleries found matching id”, followed by the number.
Note: A gallery that is password protected shows its password form on this page too.