Title: WordPress shortcodes in Template
Last modified: August 31, 2016

---

# WordPress shortcodes in Template

 *  Resolved [john470fc](https://wordpress.org/support/users/john470fc/)
 * (@john470fc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wordpress-shortcodes-in-template/)
 * Hi, just reading the following which seems to describe my problem;
 * [http://pods.io/forums/topic/wordpress-shortcodes-in-template/](http://pods.io/forums/topic/wordpress-shortcodes-in-template/)
 * So I’m trying to insert a shortcode from another plugin into a pods template 
   with some success as follows;
 * <?php echo do_shortcode(‘[gdrts_stars_rating type=”posts.pages” id=62]’); ?>
 * This works fine, but I want to pull in the current post id using your magic tags,
   so I try this;
 * <?php echo do_shortcode(‘[gdrts_stars_rating type=”posts.pages” id={@id}]’); ?
   >
 * This does not work. Is what I am trying to do possible? Is there another way 
   to do this?
 * Best regards …
 * [https://wordpress.org/plugins/pods/](https://wordpress.org/plugins/pods/)

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

 *  Plugin Contributor [Jim True](https://wordpress.org/support/users/jimtrue/)
 * (@jimtrue)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wordpress-shortcodes-in-template/#post-7305979)
 * If you want magic tags to be processed (and shortcodes) without using PHP (which
   is why it’s not processing your Magic Tags), you need to use the following documentation,
   down at the bottom of the page:
 * [http://pods.io/docs/learn/shortcodes/pods/](http://pods.io/docs/learn/shortcodes/pods/)
 * There’s a section called ‘Calling Shortcodes in Pods Templates’; that process
   you need to activate, both the wp_config.php changes and the addition to your
   functions.php
 *  Thread Starter [john470fc](https://wordpress.org/support/users/john470fc/)
 * (@john470fc)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wordpress-shortcodes-in-template/#post-7305986)
 * Hi Jim, thanks for your quick rely!
 * I had seen that constant posted in another forum somewhere, but I did’t quite
   understand the logic. However, now I’ve read your documentation a couple of times(
   I must have overlooked that small part), I have what I need working. And without
   any php in the template (which I know you try to discourage).
 * Many thanks!
 *  Plugin Contributor [Jim True](https://wordpress.org/support/users/jimtrue/)
 * (@jimtrue)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wordpress-shortcodes-in-template/#post-7306194)
 * Glad to hear it’s working for you. We’ll try to highlight that better in the 
   updated documentation, also to make it clearer. I think breaking the Shortcode
   document into multiple parts will make that somewhat clearer.

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

The topic ‘WordPress shortcodes in Template’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [templates](https://wordpress.org/support/topic-tag/templates/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jim True](https://wordpress.org/support/users/jimtrue/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/wordpress-shortcodes-in-template/#post-7306194)
 * Status: resolved