Title: [Plugin: NextGEN Gallery] advanced function calls for [singlepic]
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] advanced function calls for [singlepic]

 *  [prw](https://wordpress.org/support/users/prw/)
 * (@prw)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-advanced-function-calls-for-singlepic/)
 * Hey alex, next gen is awsome. now thats done, my question.
 * I am trying to automatically fetch an image presented as a [singlepic] from a
   page, and use that elsewhere. im sure i have to use
    `pregmatch('`\[[^singlepic\]]*\]`','',
   $temp_content)` or something similar, but im not sure how to get the first number,
   then use `$image = nggdb::find_image( $image );`.
 * basically im a little lost, i was wondering if you might give me a little help,
   as using more advanced functionality wtihin templates isnt so well documented
   around the net.
 * thanks bro.
    paul.

The topic ‘[Plugin: NextGEN Gallery] advanced function calls for [singlepic]’ is
closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [prw](https://wordpress.org/support/users/prw/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-advanced-function-calls-for-singlepic/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
