Title: EM_Event in header.php
Last modified: August 31, 2016

---

# EM_Event in header.php

 *  Resolved [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/em_event-in-headerphp/)
 * Hi all,
 * Is it possible to use `global $EM_Event` in theme’s header.php ? Because the 
   page become blank.
 * I want to include the event date in my meta tag property for Facebook og:description
 * The `global $EM_Event` alone is not a problem, but if I insert after global
 * `$event_dates = $EM_Event->output('#_EVENTDATES');`
 * that become a problem.
 * Thanks.
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/em_event-in-headerphp/#post-7148540)
 * hi,
 * I’m afraid that this is not possible at the moment however something like this
   is possible (see the last snippet)
 * [https://wordpress.org/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=21](https://wordpress.org/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=21)
 *  Thread Starter [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * (@idiots_guide)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/em_event-in-headerphp/#post-7148649)
 * I finally create a dedicated header file. And move the portion of facebook into
   content file.
 * Thanks.

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

The topic ‘EM_Event in header.php’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Stephen](https://wordpress.org/support/users/idiots_guide/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/em_event-in-headerphp/#post-7148649)
 * Status: resolved