Title: Single event post
Last modified: August 31, 2016

---

# Single event post

 *  Resolved [doodaf](https://wordpress.org/support/users/doodaf/)
 * (@doodaf)
 * [10 years ago](https://wordpress.org/support/topic/single-event-post/)
 * Hi Jeroen
 * Another question from me – can you tell me how to call a single event in a single-
   wp_theatre_prod.php file? I’ve looked through the files on github but can’t see
   it there.
 * What I mean is something similar to this, but for a single event:
 *     ```
       $args = array(
           'start' =>'now',
       );
       $events = $wp_theatre->events->get($args);
       foreach ($events as $event) {
           echo $event->title();
           // do other stuff with your event
       }
       ```
   
 * Thanks!
 * [https://wordpress.org/plugins/theatre/](https://wordpress.org/plugins/theatre/)

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

 *  Plugin Author [Jeroen Schmit](https://wordpress.org/support/users/slimndap/)
 * (@slimndap)
 * [10 years ago](https://wordpress.org/support/topic/single-event-post/#post-7444798)
 * To display the event title on `single-wp_theatre_prod.php` you can just use `
   the_title()`.
 * To do more stuff with the single event:
 *     ```
       // Get the event.
       $event = new WPT_Production();
   
       // Get the event dates.
       $dates = $event->events();
       ```
   
 *  Thread Starter [doodaf](https://wordpress.org/support/users/doodaf/)
 * (@doodaf)
 * [10 years ago](https://wordpress.org/support/topic/single-event-post/#post-7444803)
 * Thanks – so is it a similar pattern for venue, start time, etc?
 *  Plugin Author [Jeroen Schmit](https://wordpress.org/support/users/slimndap/)
 * (@slimndap)
 * [10 years ago](https://wordpress.org/support/topic/single-event-post/#post-7444807)
 * Try this:
 *     ```
       $production = new WPT_Production();
   
       $events = $production->events();
       foreach ($events as $event) {
           echo $event->title();
           echo $event->venue();
       }
       ```
   
 *  Plugin Author [Jeroen Schmit](https://wordpress.org/support/users/slimndap/)
 * (@slimndap)
 * [10 years ago](https://wordpress.org/support/topic/single-event-post/#post-7444809)
 * It is a little bit confusing because the code of the plugin is using different
   terms for events and dates.
 * In the code:
 * ‘production’ = ‘event’
    ‘event’ = ‘date’

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

The topic ‘Single event post’ is closed to new replies.

 * ![](https://ps.w.org/theatre/assets/icon-256x256.png?rev=1208182)
 * [Theater for WordPress](https://wordpress.org/plugins/theatre/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theatre/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theatre/)
 * [Active Topics](https://wordpress.org/support/plugin/theatre/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theatre/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theatre/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jeroen Schmit](https://wordpress.org/support/users/slimndap/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/single-event-post/#post-7444809)
 * Status: resolved