Title: Hard Code in template
Last modified: August 21, 2016

---

# Hard Code in template

 *  [fau-do](https://wordpress.org/support/users/fau-do/)
 * (@fau-do)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/hard-code-in-template/)
 * Hello,
 * I am trying to hard code the plugin into my template using the following code,
   but it doesn’t seem to work.
    `<?php echo do_shortcode( '[gallery size="accessories-
   thumb" link="file" ]' ); ?>` Here’s the link to the page: [http://sacoenergy.com/products/accessories](http://sacoenergy.com/products/accessories)
 * Any suggestions for hard coding would be appreciated!
    Thanks!
 * [http://wordpress.org/extend/plugins/wp-lightbox-2/](http://wordpress.org/extend/plugins/wp-lightbox-2/)

Viewing 1 replies (of 1 total)

 *  [Pankaj Jha](https://wordpress.org/support/users/masdiblogs/)
 * (@masdiblogs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/hard-code-in-template/#post-3672104)
 * Short code should work fine, let me check and get back to you soon !

Viewing 1 replies (of 1 total)

The topic ‘Hard Code in template’ is closed to new replies.

 * ![](https://ps.w.org/wp-lightbox-2/assets/icon-128x128.png?rev=1093845)
 * [WP Lightbox 2](https://wordpress.org/plugins/wp-lightbox-2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-lightbox-2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-lightbox-2/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-lightbox-2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-lightbox-2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-lightbox-2/reviews/)

## Tags

 * [hardcode](https://wordpress.org/support/topic-tag/hardcode/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pankaj Jha](https://wordpress.org/support/users/masdiblogs/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/hard-code-in-template/#post-3672104)
 * Status: not resolved