The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Shortcode Within Shortcode (2 posts)

  1. schaefermic
    Posted 6 years ago #


    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]'); ?>
            <?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.


  2. schaefermic
    Posted 6 years ago #

    Anyone have an idea how to use these two shortcodes within each other?

Topic Closed

This topic has been closed to new replies.

About this Topic