Support

Home Forums Events Calendar Add-on Calendar "All Day Event"

Calendar "All Day Event"

Posted: January 10, 2014 at 2:19 pm

Viewing 3 reply threads


novaopen

January 10, 2014 at 2:19 pm

How do I get an event to display in the “All Day Event” portion at the top of the Calendar?


novaopen

January 10, 2014 at 2:32 pm

Further, is there a way to exclude individual events from displaying on the calendar?


novaopen

January 10, 2014 at 2:33 pm

I suspect a meta field would work but how would that be passed to (or excluded from) the calendar?


Josh

  • Support Staff

January 10, 2014 at 5:07 pm

Hi Michael,

We’ll have to look into how to pass the allDay option into the event object. I think you’re on the right track about using a meta key because it’s not a standard built in option that Event Espresso offers.

One way to exclude specific events from displaying on the calendar is by setting their status to “waitlist”. They’ll still work like any other event where you’ll be able to register for them as long as you don’t link them to another event so they become a real waitlist sign up.


Josh

  • Support Staff

January 10, 2014 at 7:26 pm

Michael,

If you look in espresso-calendar.php around line 754 you’ll find:

$events[ $cntr ]['allDay'] = FALSE;

This can be changed to:

if (array_key_exists('allDay', $event_meta)){
   $events[ $cntr ]['allDay'] = TRUE;
} else {
   $events[ $cntr ]['allDay'] = FALSE;
}

Then you can enter allDay into the key field and give it a value in the event meta in the event editor to make it display as an all day event in the calendar.

Viewing 3 reply threads

The support post ‘Calendar "All Day Event"’ 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