Title: How do I start shortcode in single-event.php?
Last modified: August 22, 2016

---

# How do I start shortcode in single-event.php?

 *  Resolved [driftmagazine](https://wordpress.org/support/users/driftmagazine/)
 * (@driftmagazine)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/)
 * I do my own theme and want to do all the shortcodes of myself in php.
 * But I can only find the foundation of lists, categories, how do you start a shortcode
   on a single page?
 * Not like this:
    <?php echo do_shortcode(“[events_list
 * More like this:
    <?php echo do_shortcode(“[event …?
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900760)
 * yes, this is correct
 *     ```
       <?php
         echo do_shortcode("[events_list]");
       ?>
       ```
   
 * eg. [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 [driftmagazine](https://wordpress.org/support/users/driftmagazine/)
 * (@driftmagazine)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900817)
 * No.
    This is what I do not want. I do not want a list, I want to be able to write
   into current events on a single page.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900828)
 * You can use the _do\_shortcode_ function for any of the Events Manager shortcodes:
 * [http://wp-events-plugin.com/documentation/shortcodes/](http://wp-events-plugin.com/documentation/shortcodes/)
 *  Thread Starter [driftmagazine](https://wordpress.org/support/users/driftmagazine/)
 * (@driftmagazine)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900830)
 * Yes, thanks I know that.
    Sorry, so hard to explain.
 * But I don’t know the start of the code if I don’t want a list.
 * <?php echo do_shortcode(“[event]”);
 * Date:
    Time:
 * IMG:
 * ?>
 * I only want to show one event, the event that is active.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900853)
 * If you only want to list one event at a time, you can use something like this:
 * `do_shortcode("[event post_id="123"]");`
 *  Thread Starter [driftmagazine](https://wordpress.org/support/users/driftmagazine/)
 * (@driftmagazine)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900868)
 * You can change the look of an event in formatting.
 * But if you want to change the look of your own theme so it will be in a file 
   called
    single-event.php.
 * If I were to use your code: do_shortcode (“[event post_id =” 123 “]”);
    So is
   there a specific event. I want to change the current event in single-event.
 *  Thread Starter [driftmagazine](https://wordpress.org/support/users/driftmagazine/)
 * (@driftmagazine)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900869)
 * I found it 🙂
 * <?php echo $EM_Event->output(‘#_EVENTNAME’); ?>
 *  [Liv82](https://wordpress.org/support/users/liv82/)
 * (@liv82)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900941)
 * Hey Driftmagazine, I’m having the same issue and I can’t seem to explain it well
   enough to any one here. Do you mind helping me out? I need to add the shortcodes
   to single events without using the formatting.
 * I’d really appreciate the help,
    Olivia

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

The topic ‘How do I start shortcode in single-event.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/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [single-event.php](https://wordpress.org/support/topic-tag/single-event-php/)

 * 8 replies
 * 4 participants
 * Last reply from: [Liv82](https://wordpress.org/support/users/liv82/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/how-do-i-start-shortcode-in-single-eventphp/#post-5900941)
 * Status: resolved