Title: [Plugin: Shortcodes Ultimate] Using Shortcodes inside theme
Last modified: August 20, 2016

---

# [Plugin: Shortcodes Ultimate] Using Shortcodes inside theme

 *  Resolved [AMGCAT](https://wordpress.org/support/users/amgcat/)
 * (@amgcat)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-using-shortcodes-inside-theme/)
 * Hello,
    thank you for this great plugin.
 * I have to add a box at the bottom of my posts, more than 600. Its going to be
   hard doing it manually so I wonder If i can put the shortcode box inside a template
   file.
 * I have been using this but it does not work. I am not very good with code. 🙂
 *     ```
       <?php
       $my_box = '
       [gn_box]
          [gn_box title="Rectificación de datos" color="#f00"] blabla bla bla bla bla  and then a link inside shortcode <a title="Contacto" href="http://www.example.com/page/">enlace </a> [/gn_box]
       [/gn_box]
       ';
       echo do_shortcode( $my_box );
       ?>
       ```
   
 * I have been using my_box as I see another post relating to this that was using
   my_tabs for the shortcode.
 * Thank you
 * [http://wordpress.org/extend/plugins/shortcodes-ultimate/](http://wordpress.org/extend/plugins/shortcodes-ultimate/)

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

 *  Plugin Author [Vova](https://wordpress.org/support/users/gn_themes/)
 * (@gn_themes)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-using-shortcodes-inside-theme/#post-2770654)
 * Hello AMGCAT,
 * try this code:
 *     ```
       <?php
       $my_box = '[gn_box title="Rectificación de datos" color="#f00"]blabla bla bla bla bla  and then a link inside shortcode <a title="Contacto" href="http://www.example.com/page/">enlace </a>[/gn_box]';
       echo do_shortcode( $my_box );
       ?>
       ```
   
 * Also, with this code you need to enable Compatibility mode at plugin settings
   page.
 *  Thread Starter [AMGCAT](https://wordpress.org/support/users/amgcat/)
 * (@amgcat)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-using-shortcodes-inside-theme/#post-2770660)
 * Thank you for your message.
 * It works !!
 * This code is going to work with all the shortcodes ?
 * changing the name of the shortcode of course
 * Thanks again, great plugin.
 * Great Support!!
 *  Plugin Author [Vova](https://wordpress.org/support/users/gn_themes/)
 * (@gn_themes)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-using-shortcodes-inside-theme/#post-2770662)
 * Yes, this code works for all shortcodes
 *  Thread Starter [AMGCAT](https://wordpress.org/support/users/amgcat/)
 * (@amgcat)
 * [14 years ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-using-shortcodes-inside-theme/#post-2770677)
 * Thank you!!

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

The topic ‘[Plugin: Shortcodes Ultimate] Using Shortcodes inside theme’ is closed
to new replies.

 * ![](https://ps.w.org/shortcodes-ultimate/assets/icon-256x256.gif?rev=2547563)
 * [Shortcodes Ultimate - Content Elements](https://wordpress.org/plugins/shortcodes-ultimate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcodes-ultimate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-ultimate/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-ultimate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-ultimate/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [AMGCAT](https://wordpress.org/support/users/amgcat/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-shortcodes-ultimate-using-shortcodes-inside-theme/#post-2770677)
 * Status: resolved