Best WordPress Theme & Plugin For Photographers

Imagely Blog

Digital Photography Tips, Tutorials and Resources

New widget support

Written By: author avatar Chris Christoff
author avatar Chris Christoff
    

The next version of NextGEN gallery contain a extended Slideshow support for the sidebar or header. This function is called :

function nggSlideshowWidget($galleryID,$Width,$Height);

So you are able to integrate a widget into your theme manually , or automatic via the widget function into your sidebar. If your theme didn’t support the sidebar widget use the follow code in your theme :

<?php
if (function_exists("nggSlideshowWidget"))
nggSlideshowWidget($galleryID,$Width,$Height);
?>

For random images :

<?php
if (function_exists("nggDisplayRandomImages"))
nggDisplayRandomImages($number_of_pic,$Width,$Height);
?>

For recent images :

<?php
if (function_exists("nggDisplayRecentImages"))
nggDisplayRecentImages($number_of_pic,$Width,$Height);
?>

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how NextGEN Gallery is funded, why it matters, and how you can support us.

author avatar
Chris Christoff

Experience the Imagely Difference

Best WordPress Theme & Plugin For Photographers

Enter the URL of your WordPress website to install

Upgrade to Imagely Pro

Imagely is perfect for photographers, designers, bloggers, and creative professionals who want more than just a gallery.

Built in eCommerce and print fulfillment

90+ themes and designs

Tons of customizations and options

14 day money back guarantee

Popular on Imagely Right Now!

How to Start a Photography Business: Step-by-Step Guide

How to Start a Photography Business: Step-by-Step Guide

Share this with other photographers Share on Facebook Share on X (Twitter) Share on LinkedIn…
25 of the Best WordPress Plugins for Photographers

25 of the Best WordPress Plugins for Photographers (2025 Guide)

Share this with other photographers Share on Facebook Share on X (Twitter) Share on LinkedIn…

Add A Comment