Title: Shortcode Within Shortcode
Last modified: August 19, 2016

---

# Shortcode Within Shortcode

 *  [schaefermic](https://wordpress.org/support/users/schaefermic/)
 * (@schaefermic)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode/)
 * Hello,
 * Im trying to use supple forms (a plugin similar to custom fields) as a way for
   my client to quickly be able to add new NextGen Galleries, in a custom template
   page.
    This way the client can easily add new pages, and just enter the ID # 
   of the gallery, to make a new page specific to the gallery. The issue im having
   is combining the two short codes. The two short codes respectively are:
 *     ```
       <?php echo do_shortcode('[imagebrowser id=1]'); ?>
       AND
               <?php echo do_shortcode('[supple snip="gallery"]'); ?>
       ```
   
 * Im trying to use the supple snip shortcode as the id# in the imagebrowser nextgen
   shortcode.
    Ive tried doing this: `<?php echo do_shortcode('[imagebrowser id=[
   supple snip="gallery"]]'); ?>` but that is not working. Does anyone have a suggestion
   on combining the two?
 * I really could use some help.
 * Ideally I’d just use supple snip to render the whole rest of the shortcode, but
   it does not render PHP.
 * Thanks!!

Viewing 1 replies (of 1 total)

 *  Thread Starter [schaefermic](https://wordpress.org/support/users/schaefermic/)
 * (@schaefermic)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode/#post-1351493)
 * Anyone have an idea how to use these two shortcodes within each other?

Viewing 1 replies (of 1 total)

The topic ‘Shortcode Within Shortcode’ is closed to new replies.

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [imagebrowser](https://wordpress.org/support/topic-tag/imagebrowser/)
 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 1 participant
 * Last reply from: [schaefermic](https://wordpress.org/support/users/schaefermic/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/shortcode-within-shortcode/#post-1351493)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
