Posted: October 9, 2013 at 7:40 am
Hello, if i use multiple event times, how can i display the times without select box? I would like to display each event day with a seperate time. E.g.:
| |
Hello Nadair, We have a shortcode that might do what you are wanting. See here: http://staging.eventespresso.com/wiki/shortcodes-template-variables/#time-date | |
That´s a start… however i need to able to acces the time one by one and not in a list so i can place the times after some given event dates … any hint? Thanks.. | |
If you are looking to do it programmatically, as in one of the php templates, then I whipped up a simple function that you can put in the EE custom functions file, or in your theme’s functions.php file: $temp = get_event_date_times($event_id); var_dump($temp); array(2) { [0]=> array(4) { ["start_date"]=> string(10) "2013-10-31" ["end_date"]=> string(10) "2013-10-31" ["start_time"]=> string(5) "14:20" ["end_time"]=> string(5) "14:20" } [1]=> array(4) { ["start_date"]=> string(10) "2013-10-31" ["end_date"]=> string(10) "2013-10-31" ["start_time"]=> string(5) "08:00" ["end_time"]=> string(5) "17:00" } } | |
Yes, i have done it similar. Thanks! | |
The support post ‘multiple event times’ 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.