jqueryサイクルをtumblrフォトセットで動作させようとすると、フォトセットイメージとdiv'.html_photoset'が各関数で動的に読み込まれるため、サイクルはdiv'.html_photoset'を取得できません。
$(function(){
$('.html_photoset').cycle({ fx: 'fade' });
$('.html_photoset').each(function() {
var tumblr_post_id = $(this).attr('id').split('_')[1];
$(this).empty();
var this_photoset = this;
$.getJSON('/api/read/json?id='+ tumblr_post_id +'&callback=?', function(response){
var photos = response['posts'][0]['photos'];
$.each(photos, function() {
var photo_url = this['photo-url-1280'];
var photo_caption = this['caption'];
var photo_markup = '<img src="'+ photo_url +'"/>';
$(this_photoset).append(photo_markup);
});
});
});
});