Displaying a gallery

Displaying a Gallery

For embedding a gallery, the gallery attribute is required. Flickr made a rather unfortunate choice when they embedded galleries in their API (Application Programmable Interface). In contrast to sets and single photos, this attribute requires you to embed the full url of the gallery:

http://www.flickr.com/photos/universal_playground/galleries/72157629847217072

Example:


[flickr gallery="http://www.flickr.com/photos/universal_playground/galleries/72157629847217072"]

results in:

DSC_5792 IMG_2850 IMG_1004 copy

 

Note: The gallery attribute requires double quotes.

Note: Make sure there are no html attributes in the code. For instance, JCE has the tendency to create a link when a url is added to an article. Make sure to unlink it, otherwise the gallery will not be found by the plugin.

 

Displaying one photo linking to a gallery in the image viewer

The plugin features the option to display one photo on your website which links to a gallery in the image viewer. All the options for displaying single photos (controlling size, alignment, vspace and hspace) are available for the photo being displayed on the website in this combination of attributes.

Example: Use the primary set image as the image displayed on the website


[flickr gallery="http://www.flickr.com/photos/universal_playground/galleries/72157629847217072" photo=display size=small]

DSC_5792

Note that all the options for displaying single photos (controlling size, alignment, vspace and hspace) are available for the photo being displayed on the website in this combination of attributes.

 

Additional displaying features

Please have a look at the additional features available to get a glance of the full potential of the plugin.

  • selected photos on website, full set in the image viewer
  • Random photos: displaying random photos on the webpage
  • Selection / Pagination options
  • etc...