Photos from Flickr can be displayed using any arbitrary search criteria:
[gallery type='flickr' user_id='abc' view='photos']
The above displays 100 photos from the user’s photo-stream. It does the following:
- Displays thumbnails of each of the photos, with options to turn off the title and photo-count display.
- Each photo’s thumbnail can be clicked to launch a slideshow for the stream in display.
The following is an example displaying Sunando Roy’s photo stream (the count is restricted to 30 due to Flickr’s TOS):
You can add a few more parameters to the short-code to reduce the number of photos, or to get photos by a certain tag only:
[gallery type='flickr' view='photos' user_id='abc' tags='p,q,r' per_page='n' layout='random']
The accepted parameters are:
tags– Comma-separated list of tags to filter the photos by
tag_mode– Either ‘any’ for an OR combination of tags, or ‘all’ for an AND combination. Defaults to ‘any’ if not specified.
text– A free text search. Photos who’s title, description or tags contain the text will be returned. You can exclude results that match a term by prepending it with a – character.
sort– The order in which to sort returned photos. Deafults to date-posted-desc. The possible values are: date-posted-asc, date-posted-desc, date-taken-asc, date-taken-desc, interestingness-desc, interestingness-asc, and relevance.
group_id– The id of a group whose pool to search. If specified, only matching photos posted to the group’s pool will be returned.
user_id– The NSID of the user whose photo to search. If this parameter isn’t passed then everybody’s public photos will be searched. A value of “me” will search against the calling user’s photos for authenticated calls.
per_page– Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500.
layout– This has nothing to do with Flickr, and is a Photonic attribute. You can use
random, and get an arrangement of square thumbnails, or circular thumbnails, or a random tiled gallery respectively.
You can see the usage here, where I have displayed 20 photos from Sunando’s photo-stream tagged “calcutta”: