All photos in a particular album for a user can be displayed using this invocation:
[gallery type='smugmug' view='images' album='abcdefgh_123456']
You could replace
view='album' and get the same results.
Note that you don’t need the nickname of the user here.
The value you pass to
album is the last segment of an album URL. E.g. IF your album URL is http://www.smugmug.com/gallery/abcdefgh_123456, the short-code will take
abcdefgh_123456 as the parameter value for
You can additionally provide a
columns parameter, similar to the standard gallery short-code invocation.
You can see the results here, for a sample invocation:
The above was created with the shortcode:
[gallery type='smugmug' view='images' album='48060458_csGcG5' columns=4]
Note that the above syntax is equivalent to:
[gallery type='smugmug' view='images' album_id='48060458' album_key='csGcG5' columns=4]
[gallery type='smugmug' view='album' album_id='48060458' album_key='csGcG5' columns=4]
Password-protected albums from Smugmug can be displayed by using the
password attribute in the shortcode. “But, if I pass the
password attribute and the photos are seen, what is the point of protecting the gallery?” you might ask.
Here is where the plugin needs a bit of help from WP’s native capabilities. Let’s say you have an album “Bill and Natalie’s Wedding”, and you protect the album with a password, “BNW20160204”, and give it to Bill and Natalie. Here is what you can do on WP:
- Create a WP page / post titled “Bill and Natalie’s Wedding”.
- Before you publish the page / post, look at the right side of the WP Editor, where there is a section called “Publish”. There is a heading called “Visibility” under that; click it.
- Select the option to make the post “Password protected”.
- Put in “BNW20160204” here, i.e., the same password that you used for the album on Smugmug
- Put your shortcode equivalent of the following into the page:
[gallery type='smugmug' view='album' album_id='48060458' album_key='csGcG5' password='BNW20160204']
- Pass on the link for the WP page / post, “Bill and Natalie’s Wedding” to Bill and Natalie, along with their password, “BNW20160204”. They can share it with whomsoever they please.
By doing the above you have enabled both, WP and Smugmug to have the same password, so you are making life easier for your end-users.