Title: Embedding into theme
Last modified: August 31, 2016

---

# Embedding into theme

 *  Resolved [JennyColvin](https://wordpress.org/support/users/jennycolvin/)
 * (@jennycolvin)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/embedding-into-theme/)
 * Hi!
    First of all, I’d like to thank you for this plugin: it’s fantastic and 
   it works like a charm! Now, to the matter at hand: I’d like to embed the shortcode
   into my theme but I haven’t had any luck so far. Can you help me out with this?
 * [https://wordpress.org/plugins/wp-gcalendar/](https://wordpress.org/plugins/wp-gcalendar/)

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

 *  Plugin Author [EuroCizia](https://wordpress.org/support/users/eurocizia/)
 * (@eurocizia)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/embedding-into-theme/#post-7326463)
 * Hi Jenny
 * We are happy to hear that you liked WP Google Calendar Manager – Google Calendar
   Plugin, that is a pleasure to us.
 * **SHORTCODES:**
    _Free version_ [wpgc-calendar] : this shortcode is working when
   you use it in posts and pages to display your events in a nice multi-mode Calendar(
   month view- week view- day view).
 * _Pro version_
    Has the shortcode of the free version ([wpgc-calendar]). [wpgc-
   events-list] : this shortcode used to display your events as a detailed list 
   in your posts and pages.
 * If you like we invite you to discover WP Google Calendar Manager pro features
   [here](http://eurocizia.com/pricing.php).
 * [https://wordpress.org/plugins/wp-gcalendar/](https://wordpress.org/plugins/wp-gcalendar/)
 *  Thread Starter [JennyColvin](https://wordpress.org/support/users/jennycolvin/)
 * (@jennycolvin)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/embedding-into-theme/#post-7326464)
 * Hi!
 * First of all, thanks for your reply, but this doesn’t answer my question, unfortunately.
 * I’ve already used the shortcode with success in a text widget I had in my sidebar.
   However, what I’d like to do now is to embed them directly into my theme, particularly
   in my sidebar.php and the shortcode doesn’t work there.
 *  Thread Starter [JennyColvin](https://wordpress.org/support/users/jennycolvin/)
 * (@jennycolvin)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/embedding-into-theme/#post-7326465)
 * I’ve found a solution. I’ll post it here in case anyone else might be in need
   of it in the future.
 * Simply add this code where you want it inside any of the .php files of your theme:
 *     ```
       <?php
       $calendar = '[wpgc-calendar]';
   
       echo do_shortcode ( $calendar );
       ?>
       ```
   
 *  Plugin Author [EuroCizia](https://wordpress.org/support/users/eurocizia/)
 * (@eurocizia)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/embedding-into-theme/#post-7326467)
 * Thank you Jenny, I hope this solution helps people in the future.

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

The topic ‘Embedding into theme’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-gcalendar_d7dbef.svg)
 * [WP Google Calendar Manager - Google Calendar Plugin](https://wordpress.org/plugins/wp-gcalendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-gcalendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-gcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-gcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-gcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-gcalendar/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [EuroCizia](https://wordpress.org/support/users/eurocizia/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/embedding-into-theme/#post-7326467)
 * Status: resolved