Hello, thank you for this great plugin.
I have one problem – multiple slideshows on one page.
There may be infinite slideshows, that replace [gallery] shortcode.
Everything works – but when I press "next" or "prev" button it triggers all the slideshows.
I know that there should be different classes for every slideshow, but I don't know how to make it.
functions.php (now it's initialize automatically)
add_filter('post_gallery', 'index_post_gallery', 10, 2);
function index_post_gallery($output, $attr) {
global $post;
if (isset($attr['orderby'])) {
$attr['orderby'] = sanitize_sql_orderby($attr['orderby']);
if (!$attr['orderby'])
unset($attr['orderby']);
Hello, thank you for this great plugin. I have one problem – multiple slideshows on one page. There may be infinite slideshows, that replace [gallery] shortcode. Everything works – but when I press "next" or "prev" button it triggers all the slideshows. I know that there should be different classes for every slideshow, but I don't know how to make it.
functions.php (now it's initialize automatically)
add_filter('post_gallery', 'index_post_gallery', 10, 2); function index_post_gallery($output, $attr) { global $post;
} extract(shortcode_atts(array( 'order' => 'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => 'dl', 'icontag' => 'dt', 'captiontag' => 'dd', 'columns' => 3, 'size' => 'thumbnail', 'include' => '', 'exclude' => '' ), $attr));
}
}