WordPress - Randomize + Thumbnails or Bar widget

The current version of Smart Slider has a bug, that if the randomize option is turned on, the thumbnails and the texts in the bar widgets won’t be linking to the correct slides. This is because our cache system is saving down the slider, which is randomized once, and then it only shows the same randomized slider all the time, it wouldn’t randomize it again. So we had to fix it by adding a javascript, that is shuffling the slides, but the widgets are completely seperate from them, and we can’t shuffle them into the same positions, where they should be. You could either turn off the randomizing, or these widgets, or you could turn off the cache in the slider’s codes, but I wouldn’t suggest that, because that way everytime you would go to a page with a slider, a new cache file would be created, and that could take up a lot of space in your ftp after a while. If you still choose to do this, you can turn off the cache like this:

Open up this file:

\wp-content\plugins\nextend-smart-slider2-full\library\smartslider\assets\js\mainslider.js

Around line 89. find this code:

if(this.options.randomize)this.randomize();

Comment it out:

//if (this.options.randomize) this.randomize();

If you are using the slider with it’s shortcode, then open up this file:

\wp-content\plugins\nextend-smart-slider2-full\shortcode.php

Around line 40.:

nextendimportsmartslider2('nextend.smartslider.slidercache');

Comment it out:

//nextendimportsmartslider2('nextend.smartslider.slidercache');

And on line 45.:

newNextendSliderCache(newNextendSliderWordpress(intval($slider), $params, dirname(__FILE__)));

Comment it out, and write these two new lines right under it:

//new NextendSliderCache(new NextendSliderWordpress(intval($slider), $params, dirname(__FILE__)));
$slider = new NextendSliderWordpress(intval($slider), $params, dirname(__FILE__));
$slider->render(false);

But if you use the slider with it’s widget in the AppearanceWidgets, then open up this file:

\wp-content\plugins\nextend-smart-slider2-full\widget.php

Around line 137.:

nextendimportsmartslider2('nextend.smartslider.slidercache');

Comment it out:

//nextendimportsmartslider2('nextend.smartslider.slidercache');

And around line 140.:

newNextendSliderCache(newNextendSliderWordpress(intval($slider), $params, dirname(__FILE__)));

Comment it out, and write these two new lines right under it:

//new NextendSliderCache(new NextendSliderWordpress(intval($slider), $params, dirname(__FILE__)));
$slider = new NextendSliderWordpress(intval($slider), $params, dirname(__FILE__));
$slider->render(false);

And don’t let your ftp to get full, clear the cache often in the SettingsNextend SettingsClear cache

load_mode