Title: Single-event.php
Last modified: September 30, 2022

---

# Single-event.php

 *  Resolved [raffi4](https://wordpress.org/support/users/raffi4/)
 * (@raffi4)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/single-event-php-2/)
 * Hi I tried to ad this code to a single-event.php page but the site break and 
   cannot show anything or very Brocken page !
 * ‘<?php get_header(); ?>
    <div <?php post_class(); ?>> <article> <?php ct_mission_news_featured_image();?
   > <div class=’post-header’> <h1 class=’post-title’><?php the_title(); ?></h1>
   </div>
 *  <div class=”post-content”>
    <?php global $post;
 *  $EM_Event = em_get_event($post->ID, ‘post_id’);
 *  //display feature image
    echo $EM_Event->output(‘#_EVENTIMAGE’);
 *  //get only the feature image url
    echo $EM_Event->output(‘#_EVENTIMAGEURL’);
 *  //use something like this
    echo $EM_Event->output(‘#_EVENTNOTES’);
 *  //or this; formatting can be set under Events > Settings > Formatting > Events
   > Single event page format
    $format = get_option ( ‘dbem_single_event_format’);
   echo $EM_Event->output($format);
 *  ?>
    </div>
 *  </article>
    <?php comments_template(); ?> </div> <?php get_footer(); ?>`

The topic ‘Single-event.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/)

 * 0 replies
 * 1 participant
 * Last reply from: [raffi4](https://wordpress.org/support/users/raffi4/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/single-event-php-2/)
 * Status: resolved