Title: [Plugin: NextGEN Gallery] Calling NextGen from a PHP function
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Calling NextGen from a PHP function

 *  [bettybotox](https://wordpress.org/support/users/bettybotox/)
 * (@bettybotox)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-calling-nextgen-from-a-php-function/)
 * Can a gallery be called from a PHP function in a template?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-calling-nextgen-from-a-php-function/#post-1488576)
 * Yes, see nggfunctions.php for all possible frontend functions
 *  [sagelike](https://wordpress.org/support/users/sagelike/)
 * (@sagelike)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-calling-nextgen-from-a-php-function/#post-1488586)
 * Can you provide an example?
 * I want to add a small image gallery ( 2 x 2 grid thumbnails) to my sidebar using
   code because I’m not using widgets on my site.
 * How would I do this?
 * thx
    G
 *  Thread Starter [bettybotox](https://wordpress.org/support/users/bettybotox/)
 * (@bettybotox)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-calling-nextgen-from-a-php-function/#post-1488693)
 * works a treat – thx Alex.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: NextGEN Gallery] Calling NextGen from a PHP function’ is closed
to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [bettybotox](https://wordpress.org/support/users/bettybotox/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-calling-nextgen-from-a-php-function/#post-1488693)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
