Forums
(@nospam60622)
14 years, 1 month ago
You would need to get have an array of keys in the correct order, then use that as reference to display the images in the right order. It may require some PHP modifications as well to output the JSON differently.
This is an issue with how For..In loops are executed in Chrome. It’s a bug as far as I’m concerned.
This issue is described more here: https://stackoverflow.com/questions/640745/google-chrome-javascript-associative-arrays-evaluated-out-of-sequence
In order to preserve the order on Chrome, you’ll have to modify the javascript in ngg.slideshow.min.js.
Here’s the solution:
Open wp-content/plugins/nextgen-gallery/xml/json.php
Go to line 85, under where it says case ‘gallery’ :
Change the second parameter on the nggdb::get_gallery function from ‘pid’ to ‘sortorder’
Works for me!