Elrohir_the_king
Member
Posted 3 years ago #
Hello, i'm using nextgengalley; i want to add manually widgets to my custom home page, i can add the slideshow widget but can't add the regular picture list widget.
<?php
if (function_exists("nggSlideshowWidget"))
{ nggSlideshowWidget($galleryID,$Width,$Height); }
?>
this is working code
<?php
if (function_exists("nggDisplayRandomImages"))
{ nggDisplayRandomImages($number_of_pic,$Width,$Height); }
?>
this is not working
Elrohir_the_king
Member
Posted 3 years ago #
so i'm done.
i figured out the right code for random image list, it should be like:
<?php nggDisplayRandomImages(X,Y,Z);?>
X: number of pic
Y: width
Z: height
this code works on custom pages wich hasn't got sidebar.
cnymike
Member
Posted 3 years ago #
When I create a sidebar random gallery using your code, it works, but the thumbnails are not styled like they would be if the widget had created the thumbnails. Any idea how to have it styled?