When browsing any WordPress view with multiple posts (archives, the default frontpage, a category or tag) Easy Swipebox will put all images into a single gallery. That is; I can open an image in the first post and then swipe my way through all images in every other post too.
I think the default behavior should be that each post is treated as its own gallery by SwipeBox? Or at least have this behavior as a setting?
In WP-jQuery Lightbox I achieve this behavior by extracting post_id when filtering on 'the_content'. Someting like:
//filter for 'the_content'
function jqlb_autoexpand_rel_wlightbox($content) {
if(get_option('jqlb_automate') == 1){
global $post;
$id = isset($post->ID) ? $post->ID : -1;
$content = jqlb_do_regexp($content, $id);
}
return $content;
}
//"public" version to lightbox any user-supplied content.
function jqlb_apply_lightbox($content, $id = -1){
if(!isset($id) || $id === -1){
$id = time().rand(0, 32768);
}
return jqlb_do_regexp($content, $id);
}