Title: PHP template file
Last modified: August 30, 2016

---

# PHP template file

 *  Resolved [simajada](https://wordpress.org/support/users/simajada/)
 * (@simajada)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-template-file/)
 * Hi WordPress
 * In the settings you can choice wich template you want to show your events on.
   when i use the normal post / page tempate. It does not works well with my template.
   
   So I wanted to make a template with my own layout and classes(so i can style 
   it how i want it to be.)
 * Now i try to put thinks like (“#_LOCATIONURL”) and (“#_EVENTLINK”), or <php get_#
   _EVENTLINK ?> but they don’t seems to work.
 * How do i do this.
 * Regards,
    Simajada
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-template-file/#post-6694217)
 * hi,
 * here’s another thread which may help you with this – [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)(
   see the sample snippet)
 *  Thread Starter [simajada](https://wordpress.org/support/users/simajada/)
 * (@simajada)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-template-file/#post-6694222)
 * yeah thanks that helps.
 * 1 question though
 * is this code part necessary?
 * <?php
    global $post; $EM_Event = em_get_event($post->ID, ‘post_id’); ?>
 * seems it is because it seems to load the in the event. But it works without that
   to.
 * Regards
    Simajada
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-template-file/#post-6694257)
 * That line is used to provide event data when the snippet is used in places where
   that data wouldn’t normally be available.
 * If the snippet works without that line, it’s probably because you’re using it
   on a single event or the event list page where the $EM_Event object has already
   been called.

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

The topic ‘PHP template file’ 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/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-template-file/#post-6694257)
 * Status: resolved