Title: Insert gallery into custom theme?
Last modified: August 24, 2016

---

# Insert gallery into custom theme?

 *  Resolved [richblend](https://wordpress.org/support/users/richblend/)
 * (@richblend)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-gallery-into-custom-theme/)
 * I cant see a way of inserting a gallery into my theme, something like this:
 *     ```
       <?php
       the_gallery('demo_gallery');
       ?>
       ```
   
 * Is it possible? Sorry if I missed this somewhere…
 * [https://wordpress.org/plugins/gallery-bank/](https://wordpress.org/plugins/gallery-bank/)

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

 *  Plugin Contributor [gallery-bank](https://wordpress.org/support/users/gallery-bank/)
 * (@gallery-bank)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-gallery-into-custom-theme/#post-6021464)
 * Hi,
 * Thank you for contacting us!
 * In order to insert short code of Gallery Bank on your page or post you need to
   follow the following steps which are mentioned below:
 * 1) Go to your pages menu and click on Add New Page button.
 * 2) After that you will see a Gallery Bank Button next to Add Media button of 
   WP-editor.
 * 3) You need to click on the button and Gallery Bank Short code Popup will open.
 * 4) After selecting your options you need to click on Insert Album button to insert
   your short code.
 * 5) After that click on publish button.
 * The Gallery Bank gallery will display on that particular page or post.
 * If you still have any doubt, please don’t hesitate to get back to us!
 * Thanks & Regards
 * **Support Team
    Tech Banker
 *  Thread Starter [richblend](https://wordpress.org/support/users/richblend/)
 * (@richblend)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-gallery-into-custom-theme/#post-6021469)
 * Thanks, but I need the gallery to appear on an existing page, _outside_ of the
   post content. I’d like to code it into my theme template. Something like this:
 *     ```
       <?php
       the_gallery('demo_gallery');
       ?>
       ```
   
 * Is this possible?
 *  Thread Starter [richblend](https://wordpress.org/support/users/richblend/)
 * (@richblend)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-gallery-into-custom-theme/#post-6021485)
 * Ah, I just realised I can use this tag:
 * `do_shortcode();`
 * To insert the gallery into a template!
 *  Plugin Contributor [gallery-bank](https://wordpress.org/support/users/gallery-bank/)
 * (@gallery-bank)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/insert-gallery-into-custom-theme/#post-6021587)
 * Hi,
 * Yes, you can do this by using **do_shortcode();** function.
 * Let us know if you require more help!
 * Thanks & Regards
 * **Support Team
    Tech Banker

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

The topic ‘Insert gallery into custom theme?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gallery-bank_f4eddc.svg)
 * [Gallery Bank - Wordpress Photo Gallery Plugin](https://wordpress.org/plugins/gallery-bank/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gallery-bank/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-bank/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-bank/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-bank/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-bank/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [gallery-bank](https://wordpress.org/support/users/gallery-bank/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/insert-gallery-into-custom-theme/#post-6021587)
 * Status: resolved