Title: [Plugin: NextGEN ScrollGallery] Shortcode in PHP template
Last modified: August 20, 2016

---

# [Plugin: NextGEN ScrollGallery] Shortcode in PHP template

 *  Resolved [stuffedhippo](https://wordpress.org/support/users/stuffedhippo/)
 * (@stuffedhippo)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/)
 * Please please please can someone help?
 * If I put the following shortcode in a post/p[age it works fine:
 * `[scrollGallery=id:4;start:1;autoScroll:true;]`
 * But if I try and put it in one of my PHP templates all it throws back is the 
   shortcode text. If have embedded it like so:
 * `<?php echo do_shortcode('[scrollGallery=id:4;start:1;autoScroll:true;]'); ?>`
 * I have tried the NGGallery shortcode in the same place and it works fine, like
   so:
 *  `<?php echo do_shortcode('[nggallery id=4]`‘); ?>
 * Any ideas of what to do would be great.
 * Thanks
 * [http://wordpress.org/extend/plugins/nextgen-scrollgallery/](http://wordpress.org/extend/plugins/nextgen-scrollgallery/)

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

 *  Plugin Author [Benedikt Mo](https://wordpress.org/support/users/bmodesign2/)
 * (@bmodesign2)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2199971)
 * hm…. I’m actually not registered a shortcode outside the content loop. I’ll think
   about it.
 *  Plugin Author [Benedikt Mo](https://wordpress.org/support/users/bmodesign2/)
 * (@bmodesign2)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2200048)
 * Hi stuffedhippo,
    I worked on it. Please copy this code in your nggScrollGallery.
   php and try it. If it work’s I will publish it as Version 1.5. Please write me
   your results.
 * Thanks Benedikt
 * _[MASSIVE block of code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Plugin Author [Benedikt Mo](https://wordpress.org/support/users/bmodesign2/)
 * (@bmodesign2)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2200050)
 * You have to use:
    <?php echo do_shortcode(‘[scrollGallery id=4 start=1 autoScroll
   =true]’); ?>
 *  Plugin Author [Benedikt Mo](https://wordpress.org/support/users/bmodesign2/)
 * (@bmodesign2)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2200053)
 * I moved the code to pastebin:
    [http://pastebin.com/xSp6xw6c](http://pastebin.com/xSp6xw6c)
 *  Thread Starter [stuffedhippo](https://wordpress.org/support/users/stuffedhippo/)
 * (@stuffedhippo)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2200064)
 * You are a genius bmodesign2. Works like a dream.
 * Thanks so much for the quick reply. I have been pulling my hair out all day, 
   luckily I have some left.
 * Excellent work.
 * Thanks again for saving my bacon!!!
 *  Plugin Author [Benedikt Mo](https://wordpress.org/support/users/bmodesign2/)
 * (@bmodesign2)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2200067)
 * 🙂 gives me pleasure.
    Thanks, so I will publish it as version 1.5. If you happy,
   please give my plugin a good rating at [http://wordpress.org/extend/plugins/nextgen-scrollgallery/](http://wordpress.org/extend/plugins/nextgen-scrollgallery/)
   and you now, good work can be donated 🙂 Greetings BMo

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

The topic ‘[Plugin: NextGEN ScrollGallery] Shortcode in PHP template’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-scrollgallery_2c1d0b.svg)
 * [NextGEN Scroll Gallery](https://wordpress.org/plugins/nextgen-scrollgallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-scrollgallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-scrollgallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-scrollgallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-scrollgallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-scrollgallery/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Benedikt Mo](https://wordpress.org/support/users/bmodesign2/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-scrollgallery-shortcode-in-php-template/#post-2200067)
 * Status: resolved