Title: Shortcode integration
Last modified: March 19, 2024

---

# Shortcode integration

 *  Resolved [polyfade](https://wordpress.org/support/users/polyfade/)
 * (@polyfade)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-integration-5/)
 * While I’m able to display the calendar using the gutenberg block on the page,
   I can’t seem to echo out the same calender as a shortcode. It is displaying the
   calendar ui, but there’s no events being displayed. BTW, the shortcode doesn’t
   seem to work with the 2020 theme either.
 * Here is my snippet: `
   <?php echo do_shortcode('[pgc calendarids="myorg_xxx@group.
   calendar.google.com" initial_view="listWeek" header-right="listWeek,dayGridMonth"]');?
   >
 * Is there something I’m missing?
    -  This topic was modified 2 years, 2 months ago by [polyfade](https://wordpress.org/support/users/polyfade/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-integration-5/#post-17514279)
 * Hi, this one works for me:
 *     ```wp-block-code
       [pgc initial_view="listWeek" header-right="listWeek,dayGridMonth" calendarids="nl.dutch#holiday@group.v.calendar.google.com"]
       ```
   
 * But I had to navigate to the next or previous week to be able to see events, 
   because this week there aren’t any, so maybe this is the case for you as well?

Viewing 1 replies (of 1 total)

The topic ‘Shortcode integration’ is closed to new replies.

 * ![](https://ps.w.org/private-google-calendars/assets/icon-256x256.png?rev=2203549)
 * [Private Google Calendars](https://wordpress.org/plugins/private-google-calendars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/private-google-calendars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/private-google-calendars/)
 * [Active Topics](https://wordpress.org/support/plugin/private-google-calendars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/private-google-calendars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/private-google-calendars/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [michielve](https://wordpress.org/support/users/michielve/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/shortcode-integration-5/#post-17514279)
 * Status: resolved