Photos

 

Photonic supports the following types of photo displays:

  • Individual photos
  • Photo searches by text
  • Photo searches by category
  • Popular photos
  • Recent photos

To display any of the above, the following parameters are mandatory:

  • type="zenfolio"
  • view="photos"

Individual Photos

To display an individual photo, the following is the syntax:

[gallery type='zenfolio' view='photos' object_id='...'] 

The object_id above is the id of your photo. How do you know what that is? Go to a photo in Zenfolio, say http://stevekershaw.zenfolio.com/p57548746/h2ee0fc3e#h2ee0fc3e (this is one of Colin’s photos). The underlined part is your id. Bear in mind that older photos in Zenfolio used to be prefixed with “h”, while newer photos are prefixed with “p”.

So, using the shortcode for the above photo:

50010: There is no such photo.

If the photo has a title, then that is displayed as a header for the photo, and if it has a caption/description, that is displayed as a caption.

Photo Searches by Text

To search for a photo by text, simply pass the text parameter to it:

[gallery type='zenfolio' view='photos' text='...'] 

The following are the results of searching for “wildlife”:

  • Wildlife Photography at N52°33.748', E14°39.752'
  • Wildlife Photography at N52°33.748', E14°39.752'
  • Wildlife Photography at N52°33.364', E14°41.267'
  • Wildlife Photography at N52°33.073', E14°42.400'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.230', E14°42.673'
  • Wildlife Photography at N52°33.229', E14°42.672'
  • Wildlife Photography at N52°33.225', E14°42.669'
  • Wildlife Photography at N52°33.225', E14°42.669'
  • Wildlife Photography at N52°33.225', E14°42.669'
  • Wildlife Photography at N52°33.225', E14°42.669'
  • Wildlife Photography at N52°33.225', E14°42.669'
  • Wildlife Photography at N52°33.219', E14°42.661'

The results are sorted by date, the most recent showing first. You could alternatively specify an explicit sort_order parameter, which can take the values Popularity, Rank or Date.

The following are the 25 most popular wildlife photos with 5 thumbnails per row:

The above uses the shortcode:

[gallery type='zenfolio' view='photos' text='wildlife' sort_order='Popularity' limit=25 columns=5] 

Photo Searches by Category

To search for a photo by category, pass the category_code parameter to it:

[gallery type='zenfolio' view='photos' category_code='...'] 

How do you get the category_code? You can go to Photonic → Helpers → Zenfolio → Zenfolio Categories, and list out all the available categories. Pick the one that you need.

The following are the most popular photos in the category “Portraits” (category code 3012000):

  • LEIATAUA
  • Tall Saloon Lady
  • Lady with dove
  • Noir topless
  • Banksia Dreaming
  • Blue Flower
  • #216 - BIG SPRINGS HORSE - TS (1:1.25)
  • Shooting, 1901, W.T. Smedley
  • #158C - MIDDLE FALLS ON THE McCLOUD #5 HDR TS (1:1.5)
  • Small Blossom 3
  • Life Imitating Real Art
  • Guan Yin Rides the Dragon
  • 1957 250f Maserati Mechanics
  • The Light Shines from Within and Without
  • #217 - RANCH AT FOUR CORNERS #1 - TS (1:2)
  • The Two Made Not-Two
  • 1957 Maserati by Port Hercules
  • Wintersea
  • Summer Sunrise on Longs Peak
  • Our Motley Fellowship

The above uses the shortcode:

[gallery type='zenfolio' view='photos' category_code='3012000' sort_order='Popularity']

For category-based searches you cannot specify Rank in your sort order – Popularity and Date are the only available options.

Popular Photos, Recent Photos

To display the most popular photos or the most recent photos, use the kind parameter and pass to it the values popular or recent. So:

[gallery type='zenfolio' view='photos' kind='recent'] 

I am not showing a working example of photos from the above because of the adult nature of some photos.

Miscellaneous Parameters

The following miscellaneous parameters can be used whenever multiple results are going to be returned:

  • limit – Shows a certain number of results. The default is 20.
  • columns – Number of thumbnails per row. The default is auto, so the plugin tries to arrange thumbnails one after another till a row is full.
  • thumb_size – This is the size of displayed thumbnails. This can take the following values:
    • 0 – Small thumbnail, upto 80 × 80px
    • 1 – Square thumbnail, 60 × 60px, cropped square
    • 10 – Medium thumbnail, upto 120 × 120px
    • 11 – Large thumbnail, upto 120 × 120px
    • 2 – Small image, upto 400 × 400px