flickrの写真からギャラリーをつくりたく調べると、flickrRSSというプラグインで実現できることがわかった。
WordPressにFlickrの写真を読み込む!!便利な2つのプラグイン『flickrRSS』と『Flickr + Highslide』 | HTML5でサイトをつくろうページを参考にさせてもらった。
確認ページ:ギャラリー
get_flickrRSS関数は引数を取れるみたい。今度試す予定。
- ‘type’ => ‘user’ – The type of Flickr images that you want to show. Possible values: ‘user’, ‘favorite’, ‘set’, ‘group’, ‘public’
- ‘tags’ => ” – Optional: Can be used with type = ‘user’ or ‘public’, comma separated
- ‘set’ => ” – Optional: To be used with type = ‘set’
- ‘id’ => ” – Optional: Your Group or User ID. To be used with type = ‘user’ or ‘group’
- ‘do_cache’ => false – Enable the image cache
- ‘cache_sizes’ => array(‘square’) – What are the image sizes we want to cache locally? Possible values: ‘square’, ‘thumbnail’, ‘small’, ‘medium’ or ‘large’
- ‘cache_path’ => ” – Where the images are saved (server path)
- ‘cache_uri’ => ” – The URI associated to the cache path (web address)
- ‘num_items’ => 4 – The number of images that you want to display
- ‘before_list’ => ” – The HTML to print before the list of images
- ‘html’ => ‘‘ – the code to print out for each image. Meta tags available: %flickr_page%, %title%, %image_small%, %image_square%, %image_thumbnail%, %image_medium%, %image_large%
- ‘default_title’ => “Untitled Flickr photo” – the default title
- ‘after_list’ => ” – the HTML to print after the list of images
参考サイト
関連エントリー