Title: Custom Shortcode in Template
Last modified: May 4, 2026

---

# Custom Shortcode in Template

 *  Resolved [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [1 month ago](https://wordpress.org/support/topic/custom-shortcode-in-template/)
 * I’m trying to add a custom shortcode into the template – and while it’s not giving
   me an error it’s not displaying the data either – is there something I need to
   do to be able to use custom shortcodes in the template?

Viewing 1 replies (of 1 total)

 *  Thread Starter [sflwa](https://wordpress.org/support/users/sflwa/)
 * (@sflwa)
 * [1 month ago](https://wordpress.org/support/topic/custom-shortcode-in-template/#post-18898494)
 * The answer is yes – my issue was I was doing nested tags to pass attributes –
   I instead wrapped the attributes and it is working

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-shortcode-in-template%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/google-calendar-events/assets/icon-256x256.png?rev=1263960)
 * [Simple Calendar - Google Calendar Plugin](https://wordpress.org/plugins/google-calendar-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-events/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-events/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [sflwa](https://wordpress.org/support/users/sflwa/)
 * Last activity: [1 month ago](https://wordpress.org/support/topic/custom-shortcode-in-template/#post-18898494)
 * Status: resolved