Photosets (Albums)


Displaying all Photosets (Albums) (🔗)

Flickr Photosets (or Albums) in Photonic can be viewed by the following short-code usage:

[gallery type='flickr' user_id='abc' view='photosets']

The above displays all Photosets for the user. It does the following:

  1. Displays thumbnails of each of the Photosets for the user, with options to turn off the title and photo-count display.
  2. Each Photoset’s thumbnail can be clicked to launch a slideshow for that Photoset.

The following is an example displaying all of Sunando Roy’s Photosets:

All Photos in a Photoset (Album) (🔗)

With a simple tweak of the short-code invocation you can make this display a single Photoset:

[gallery type='flickr' photoset_id='xyz']

You don’t need the user id here, and if you are providing the user id, make sure that the Photoset id exists for the user.

You can see the usage here, where I have displayed 10 photos (per_page=10) of a Photoset from Sunando with circular thumbnails (layout='circle'). Since I am displaying only 10 photos, I can opt to exclude the photoset header by setting headers='':

[gallery type='flickr' photoset_id='72157625600954257' layout='circle' per_page='10' headers='']

The headers parameter accepts a comma-separated list containing thumbnail, title and counter in any order. This setting overrides whatever you have defined in the back-end for the header display.

A Filtered List of Photosets (Albums) (🔗)

What if you wanted to display a single photoset, but not show the photos inside? In other words, what if you only wanted to show a single thumbnail for the album? You can use the filter attribute for this. Using filter requires you to pass both, user_id and view. The filter attribute can have a comma-separated list of album ids e.g. filter='abc,xyz':

The above has been generated using the following shortcode. I have 3 albums, and this pulls 2 of them:

[gallery type='flickr' user_id='35553131@N07' view='photosets' filter='72157673702613223,72157677595740225' layout='random']

What if I wanted to display every album except the two above? I simply add another parameter to my shortcode, filter_type='exclude':

[gallery type='flickr' user_id='35553131@N07' view='photosets' filter='72157673702613223,72157677595740225' layout='random' filter_type='exclude']

By default filter_type is set to include.

“Show More” and Paged Results (🔗)

If a photoset has a lot of photos and you want to reduce the count, Photonic offers a couple of approaches:

  1. For Flickr, use the per_page attribute and add an additional tag, more. This will initially show you the number of photos specified in per_page, and a button to load more images. Upon clicking the button you will see an additional set of photos as limited by per_page. The button will continue to show until you have exhausted the entire set of photos.
  2. Photonic can be used in conjunction with <!-- nextpage --> to display photos in a paged manner. For this you can structure your page content thus in the WP Editor:
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc porta enim vel tellus dignissim, a venenatis neque congue. Nunc ornare cursus leo ac viverra. Pellentesque suscipit pulvinar metus, non aliquam odio egestas quis. Vestibulum porta viverra magna, vel malesuada ante fermentum vitae.
    [gallery type='flickr' photoset_id='72157625600954257' layout='circle' per_page='100' page=1]
    <!-- nextpage -->
    [gallery type='flickr' photoset_id='72157625600954257' layout='circle' per_page='100' page=2]
    <!-- nextpage -->
    [gallery type='flickr' photoset_id='72157625600954257' layout='circle' per_page='100' page=3]

Here is an example using the first approach. The text you provide to the more parameter controls what is shown in the button:

[gallery type='flickr' photoset_id='72157625600954257' layout='circle' per_page='20' more='Show More']