Title: Hardcoding Slideshow Gallery Pro
Last modified: August 19, 2016

---

# Hardcoding Slideshow Gallery Pro

 *  [InventiveWebDesign](https://wordpress.org/support/users/inventivewebdesign/)
 * (@inventivewebdesign)
 * [15 years ago](https://wordpress.org/support/topic/hardcoding-slideshow-gallery-pro/)
 * I would like to hardcode a small slideshow into my sidebar. I have set up slides(
   Manage Slides) that I want it to use since I want it to show up on every page.
   I am not using this plugin on any other pages.
 * I have tried using the code in sidebar.php from your manual (below) but it doesn’t
   seem to work. Is there a problem with not having the slideshow tag in the template
   page? Any suggestions?
 *     ```
       <?php if (class_exists('Gallery')) {
       $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id
       = null);
       } ?>
       ```
   
 * _[Please post code snippets between backticks or use the code button.]_

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

 *  [Wes Turner](https://wordpress.org/support/users/wesswei/)
 * (@wesswei)
 * [15 years ago](https://wordpress.org/support/topic/hardcoding-slideshow-gallery-pro/#post-1997550)
 * I’m also looking into this. I have it working but it displays all custom slides
   as opposed to 1, 2, 3, etc.
 *  Thread Starter [InventiveWebDesign](https://wordpress.org/support/users/inventivewebdesign/)
 * (@inventivewebdesign)
 * [15 years ago](https://wordpress.org/support/topic/hardcoding-slideshow-gallery-pro/#post-1997555)
 * How did you get it to display in your sidebar. I want all of the slides to show
   up but just can’t get it to display. What code did you use? Did you put your 
   code in sidebar.php?
 *  Plugin Author [cpres](https://wordpress.org/support/users/cpres/)
 * (@cpres)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/hardcoding-slideshow-gallery-pro/#post-1997596)
 * Hmm…there’s no reason why the code shouldn’t work in the sidebar.php. Is it displaying
   anything at all like the slideshow wrapper div? If you do the hardcode in the
   different page does it work?

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

The topic ‘Hardcoding Slideshow Gallery Pro’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slideshow-gallery-pro.svg)
 * [Slideshow Gallery Pro](https://wordpress.org/plugins/slideshow-gallery-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slideshow-gallery-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slideshow-gallery-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/slideshow-gallery-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slideshow-gallery-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slideshow-gallery-pro/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [cpres](https://wordpress.org/support/users/cpres/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/hardcoding-slideshow-gallery-pro/#post-1997596)
 * Status: not resolved