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
multiple event times | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium multiple event times

multiple event times

Posted: October 9, 2013 at 7:40 am

Viewing 4 reply threads


Nadir Al-Badri

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.:
02/02/2013 – 8:00 – 12:00
&
03/02/2013 – 10:00 – 14:00
It would be easy to display the times as a list but that is not sufficient here.
(Latest EE and WP, new install)


Jonathan Wilson

  • Support Staff

October 9, 2013 at 2:17 pm

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


Nadir Al-Badri

October 17, 2013 at 9:40 am

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..


Sidney Harrell

  • Support Staff

October 17, 2013 at 11:52 am

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:

It’s a little crude, in that the same start and end dates will appear in every entry, but it will allow you to access all the start and end times by looping over the results. It gives an output of:

$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" 
  }
}


Nadir Al-Badri

October 21, 2013 at 6:59 am

Yes, i have done it similar. Thanks!

Viewing 4 reply threads

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.

Event Espresso - Staging Server