Title: Include $calendar variable in events-list.php
Last modified: August 22, 2016

---

# Include $calendar variable in events-list.php

 *  Resolved [zearle](https://wordpress.org/support/users/zearle/)
 * (@zearle)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/include-calendar-variable-in-events-listphp/)
 * I’m trying to customize my events-list.php template. On the calendar-full.php
   template it includes the $calendar variable and it’s very handy. I’m kind of 
   stumped on why I can’t access the $calendar variable from the events-list.php
   template. Can someone point me in the right direction as to how this variable
   is included in the plugin? Is there a global variable I can access or something
   similar?
 * Thanks!
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

Viewing 1 replies (of 1 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/include-calendar-variable-in-events-listphp/#post-5784011)
 * Try adding this to the top of your file:
 * `global $EM_Calendar;`

Viewing 1 replies (of 1 total)

The topic ‘Include $calendar variable in events-list.php’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/include-calendar-variable-in-events-listphp/#post-5784011)
 * Status: resolved