well, documentation is good for simple users but not adequate to understand if it works in “display:none” container (which is not). I just want to know how could I reload my slider on wordpress but figured out I could not, because bxSlider object was not assigned to any pointer like var.
So I add the below line to the “public function print_gallery_scripts()” in gallery-shortcode.class.php
echo ' var slider_' . ($this->current_gallery_id - 1) . ' = Array();';
and in gallery.shortcode.script.php, change the
$( '#<?php echo $gallery_id; ?> .bxslider' ).bxSlider({
with
slider_<?php echo substr($gallery_id, -1); ?>[‘slider’] = $( ‘#<?php echo $gallery_id; ?> .bxslider’ ).bxSlider({
and
$('#<?php echo $gallery_id; ?> .bxpager').bxSlider({
with
slider_<?php echo substr($gallery_id, -1); ?>['pager'] = $('#<?php echo $gallery_id; ?> .bxpager').bxSlider({
so, I can reach the slider objects. However I reload the slider_0.[‘slider’], pager dissappears and could not take it back.