Title: [NextGEN Gallery] Widget Tags   Function
Last modified: August 19, 2016

---

# [NextGEN Gallery] Widget Tags Function

 *  Resolved [dernilson](https://wordpress.org/support/users/dernilson/)
 * (@dernilson)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/nextgen-gallery-widget-tags-function/)
 * hi there,
 * trying two things for days … but no success. hope someone can help – ?!
 * #1
    want to show the NextGEN Gallery in my sidebar (theme with no widget support)
   and display random images excluding one gallery (id=6). i use the following code:
 *     ```
       <?php
       if (function_exists("nggDisplayRandomImages"))
       { nggDisplayRandomImages(9,60,60,6); }
       ?>
       ```
   
 * everything work, except the excluding thing. the gallery (id=6) is still there
   among the random images. is there a way to do this – ?!
 * #2
    want to show a single gallery (id=6) in my 2nd “sidebar” (also with no widget
   support). trying a lot of functions here but nothing work such as:
 *     ```
       <?php
       if (function_exists("nggShowAlbum"))
       { nggShowAlbum (6,48,48); }
       ?>
       ```
   
 * would be more than great if there anybody out there who can help. 🙂
 * thanks and regards

Viewing 1 replies (of 1 total)

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/nextgen-gallery-widget-tags-function/#post-911351)
 * You should update to v1.0.0
 * `nggDisplayRecentImages($number,$width,$height,$exclude,$list,$show)`
 * (here you can define exclude & list). See widgets.php for more notes
 * with v1.0.0
 * you can use `echo nggShowAlbum (6,48,48);`

Viewing 1 replies (of 1 total)

The topic ‘[NextGEN Gallery] Widget Tags Function’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/nextgen-gallery-widget-tags-function/#post-911351)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
