• Resolved TurgutSaricam

    (@turgutsaricam)


    Hi everyone. I had some troubles finding the required code to display random images as slideshow on my index page. I searched a lot and could not find a solution. I don’t have PHP experience. Whatever. I just found a solution by digging the source files, for the case I mentioned.

    <?php
    	$example = new C_Widget_Slideshow();
    	$instance = array( 'title' => '&nbsp;', 'galleryid' => 0, 'width' => 420, 'height' => 320, 'limit' => 10 );
    	$example->widget('', $instance);
    ?>

    Above example will display random images from any gallery as a slideshow. There is no issue here. I just wanted to share the solution, since I had a lot of time spent to come up with this solution. I hope it helps someone.

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Displaying a slideshow with random images with php code’ is closed to new replies.