Made in Europe, buy from Europe.

Black Friday

65% off Annual plans

25% off Lifetime · 10 per week

Ends December 2

Get the deal →

How to show any gallery on one page with Advanced Shortcodes

Updated 2 min read

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).

Watch how to copy the shortcode, set the link parameter and find a gallery’s ID in the gallery list.

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.

  1. Go to Modula → Settings → Galleries.
  2. 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.

    Page with all galleries in Settings, Galleries: the shortcode with a Copy button, the Link parameter field and an example address
  3. Look at the Link parameter. This is the word used in the address. It is gallery_id by default.
  4. To use another word, type it and click Save changes. The Example line shows the new address.
  5. Go to Pages → Add New.
  6. Add a Shortcode block.
  7. Paste the shortcode into the block.
  8. Publish the page.

Your page is ready. Now you can build the link that shows one gallery on it.

  1. 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.
  2. 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 of gallery_id.
  3. 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.

Was this page helpful?
0 0

Still stuck?

Can’t find the answer?

Write to us with what you tried and what you expected to happen, and we’ll help you sort it out.