WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Flickr Gallery] Galleria

[Plugin: Flickr Gallery] Galleria

Viewing 1 replies (of 1 total)
  • where in ‘flickr Gallery’s’ code would i ….

    <script type="text/javascript">
    $().ready(function() {
      // JSON feed from Flickr
      var feedUrl = "http://api.flickr.com/services/feeds/photos_public.gne?format=json&jsoncallback=?"
    
      // parse JSON using jQuery's built-in function
      $.getJSON(feedUrl, function(data) {
    
            // iterate through each item
            $.each(data.items, function(i, item) {
                // create image node in DOM and update it's src attribute
                // _m = medium img, _b = large; remove the replace function if you want the standard small images
                $("<img/>").attr("src", item.media.m.replace("_m", "_b"))
                    // add image to gallery container
                    .appendTo("#gallery")
                    // add a link to each image - this will go to the photo on Flickr
                    .wrap('<a href="' + item.link + '" target="_blank"></a>');
            });
    });
    </script>

    from:http://www.jamestease.co.uk/blether/display-flickr-photos-in-the-galleria-jquery-plugin/

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Flickr Gallery] Galleria’ is closed to new replies.