Best WordPress Theme & Plugin For Photographers

Imagely Documentation

Documentation, Reference Materials and Tutorials for Imagely

How to Get the Shortcode for a Gallery or Album

Do you prefer to add your galleries with shortcodes?

Imagely creates the shortcode for you. Every gallery and album has its own shortcode, and you can copy it with one click. You can paste it into any post, page, or widget area that accepts shortcodes.

A gallery shortcode looks like this:

[imagely id="3"]

An album shortcode looks like this:

[imagely album="3"]

The number is the gallery or album ID.

Copy a Gallery Shortcode

  1. In your WordPress dashboard, go to Imagely > Galleries.
  2. Find your gallery in the Manage Galleries list.
  3. Click the shortcode in the Shortcode column. Imagely copies it to your clipboard and shows Shortcode copied to clipboard!

You also see the shortcode right after you create a new gallery. The confirmation window shows it under “Your gallery is ready to be published.” Click it to copy it.

Copy an Album Shortcode

  1. Go to Imagely > Albums.
  2. Click the shortcode in the Shortcode column.

Get the Shortcode From the Imagely Block

If you already added a gallery with the Imagely block in the block editor, you can see its shortcode in the code view.

  1. Open the post or page in the block editor.
  2. Add the Imagely block if it isn’t there yet. On the GALLERY tab, pick your gallery in Select Gallery (or switch to the ALBUM tab), then click INSERT.
  1. Click the three-dot Options menu in the top-right corner of the editor, next to the Publish (or Save) button.
  2. Under Editor, click Code editor.
  1. Copy the shortcode between the block comments. In this example it is .
  1. Click Exit code editor to go back to the normal view.

Use the Shortcode

You can paste the shortcode into:

  • A Shortcode block in the block editor.
  • The Classic editor or a classic text widget.
  • Any page builder module or widget area that runs WordPress shortcodes.

The gallery shows with the layout you picked for it on its Customize Layout & Settings step (go to Imagely > Galleries and click the gallery title). If you change the layout there, it changes everywhere that gallery appears.

You’re done! Now you can add your gallery anywhere that accepts a shortcode.

Experience the Imagely Difference

Best WordPress Theme & Plugin For Photographers

Enter the URL of your WordPress website to install

Upgrade to Imagely Pro

Imagely is perfect for photographers, designers, bloggers, and creative professionals who want more than just a gallery.

Built in eCommerce and print fulfillment

90+ themes and designs

Tons of customizations and options

14 day money back guarantee