WordPress Galleria plugin autoplay
2010
For a client I was looking for a slideshow which could be easily integrated with WordPress and galleria-wp has been my choice.
It just does not start the slideshow automatically…
In order to do this I added the following lines of code to the showNavigation if-loop :
if ( $showNavigation == 1 ) {
// code..
} else {
// autoplay
jQuery(window).load( function() {
timerID_$galleryID = setInterval( \"jQuery.galleria.next( 'stage_$galleryID', '$galleryID' );\", $intervalMilliSec );
});
}
So, if one unselects « show navigation » in wp-galleria’s admin panel in WordPress, the slideshow will autoplay.