Title: [Plugin: NextGEN Gallery] PHP code for inserting NextGEN into a theme template
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] PHP code for inserting NextGEN into a theme template

 *  Resolved [wordpresssmith](https://wordpress.org/support/users/wordpresssmith/)
 * (@wordpresssmith)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-php-code-for-inserting-nextgen-into-a-theme-template/)
 * What is the PHP code to insert the NextGen shortcodes into a template? Shortcodes
   that I wish to use are:
    [monoslideshow id=1 w=800 h=550 preset=’sparkles’] **—
   Can this shortcode handle album instead of gallery? or do multiple galleries?[
   nggtags album=WordPress,Cologne,Irland] [nggtags gallery=cologne,wordpress] [
   nggallery id=x w=800 h=550] [album id=x template=extend] [nggallery id=2 template
   =carousel images=7] ** [nggallery id=1 template=galleryview images=0] **
 * I will have the NextGEN and NextGEN Monoslide (with the monoslide SWF purchase)
   plugins installed.
 * ‘<?php echo do_shortcode(‘[slideshow id=x w=width h=height]’); ?>’ does not work.
 * [http://wordpress.org/extend/plugins/nextgen-gallery/](http://wordpress.org/extend/plugins/nextgen-gallery/)

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

 *  Thread Starter [wordpresssmith](https://wordpress.org/support/users/wordpresssmith/)
 * (@wordpresssmith)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-php-code-for-inserting-nextgen-into-a-theme-template/#post-1590329)
 * ‘<?php echo do_shortcode(‘[slideshow id=x w=width h=height]’); ?>’ works. I had
   another error!
 *  [marujobhz](https://wordpress.org/support/users/marujobhz/)
 * (@marujobhz)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-php-code-for-inserting-nextgen-into-a-theme-template/#post-1590572)
 * i use `<?php echo do_shortcode('[monoslideshow id=1 w=640 h=358]'); ?>` and works
   fine.
 *  [elmaluf](https://wordpress.org/support/users/elmaluf/)
 * (@elmaluf)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-php-code-for-inserting-nextgen-into-a-theme-template/#post-1590615)
 * I used <?php echo do_shortcode(‘[nggallery id=3 w=600 h=450]’); ?>. It worked
   fine too in the header.

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

The topic ‘[Plugin: NextGEN Gallery] PHP code for inserting NextGEN into a theme
template’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [elmaluf](https://wordpress.org/support/users/elmaluf/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-php-code-for-inserting-nextgen-into-a-theme-template/#post-1590615)
 * Status: resolved