I’ve hacked my way around this to get it to work. I’m sure its very messy and probably has some mistakes but in case its of any help to anybody else, here goes:
1. Modified the ‘Shortcode.class.php’ file so the line #207, the div constructor now reads:
$ret .= '<div id="go-gallery-' . $id . '-' . $i . '" class="go-gallery-container' . $classes . '"' . $gallery_style . " data-galOpts='" . rtrim( $script, ', ' ) . "'>" . "\n";
2. Modified the ‘good-old-gallery.php’ file so that the enqueue scripts are loaded unconditionally by commenting out lines 140 – 165 and simply including the following instead:
$found = TRUE;
add_action( 'wp_enqueue_scripts', array( $this, 'loadStylesAndScripts' ) );
3. Included the following for the pages using Good Old Gallery:
jQuery.fn.startGals = function() {
return this.each(function() {
$thisID = '#'+$(this).attr('id');
if ($($thisID).data('galInitiated') != 'TRUE') {
$opts = '{'+$($thisID).attr('data-galOpts')+'}';
$optsObj = eval('('+$opts+')');
$($thisID+' .slides').cycle($optsObj);
$($thisID).data('galInitiated','TRUE')
;
});
};
4. Put this in Infinite Scroll’s callback box:
jQuery(".go-gallery-container").startGals();