SmugMug Albums


All albums for a user can be displayed using this invocation:

[gallery type='smugmug' view='albums' nick_name='nick-name']

Note that you need the nickname of the user whose photos you want to see. The nickname can be got from the SmugMug URL for that user. E.g. If the SmugMug URL is, you have to set nick_name='joe-sixpack'.

Additionally you can specify a columns to control how many thumbnails appear in each row.

You can see the results here, which list out Sayontan Sinha’s albums in a random layout:


This album is password-protected. Please provide a valid password.


Here is another set, listing out Sayontan Sinha’s albums:

  • Bushveld

    This album is password-protected. Please provide a valid password.

  • Maui
  • Fauna

The above uses the shortcode:

[gallery type='smugmug' view='albums' nick_name='sayontan']

SmugMug’s API is very picky about what it lets you show on your site. Even if a folder is not protected, it sometimes prevents you from launching a slideshow, which typically happens if you have protected an album, then unprotected it. E.g. in the above the “Fauna” album was originally protected, then unprotected. This caused issues in viewing the contents of the album when clicked. The culprit was one of SmugMug’s settings for the album, “External links” (“Allow easy display of your photos elsewhere?”). This needs to be set to “Yes” for the photos to be visible.


What if you wanted to display only only a select few album thumbnails, not every album? Enter the filter attribute of the shortcode. Using the filter attribute you can pass a comma-separated list of album keys, and only those will be displayed. You can get the album ids from your dashboard, under Photonic → Helpers → Smugmug.


This album is password-protected. Please provide a valid password.


The above is generated using:

[gallery type='smugmug' view='albums' nick_name='sayontan' filter='zCKf5m,csGcG5' layout='random']

Protected and Password-Protected Albums

Let’s say you have 5 albums and 2 of them are access-protected or password-protected. You have the following options:

  1. Enable authentication on your site (Photonic → Settings → Smugmug → Smugmug Settings → Private Photos). On completion of authentication, a user will see all the protected albums that the user is authorized to see.
  2. You could choose to skip the thumbnails for the password-protected albums altogether (Photonic → Settings → Smugmug → SmugMug Album Thumbnails (with other Albums) → Hide thumbnails for Password-protected albums). Keep the abovementioned option switched on. Then display the photos by using the password attribute in the shortcode. See the photos page for details.
  3. Disable the abovementioned option. In this case, you will see the thumbnails for the password-protected albums. In the previous examples Bushveld is a password-protected album. If you click on it, you are prompted to provide a password. Go ahead and click on Bushveld, then put in Saffa – that will show you the photos in that album.

Password-Protected Sites

On a note similar to the above, if your entire Smugmug site is password-protected, you can site_password attribute to the shortcode, and it will display your content. So, something like this will work:

[gallery type='smugmug' view='albums' nick_name='sayontan' site_password='abcd1234']