Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Get the start time | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Get the start time

Get the start time

Posted: April 23, 2013 at 6:35 am

Viewing 1 reply thread


Achim Baur

April 23, 2013 at 6:35 am

I am in the process of customizing my template and at one point I want to display the start and end time of my event. Just these two times, no formatting.

I figured out how to get the start date (<?php echo date(‘j’,strtotime($start_date)); ?>). How do I get just the start and end time?


Josh

April 23, 2013 at 11:32 am

Hi Achim,

There’s a shortcode you can use with the do_shortcode function. So for the start time it would be something like:

<?php echo do_shortcode('[EVENT_TIME event_id="'.$event_id.'" type="start_time" format="g:i a"]'); ?>

More info here:

http://staging.eventespresso.com/wiki/shortcodes-template-variables/#time-date

Viewing 1 reply thread

The support post ‘Get the start time’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server