Support

Home Forums Event Espresso Premium New Event takes on datetimes from other events

New Event takes on datetimes from other events

Posted: February 8, 2017 at 8:42 am

Viewing 4 reply threads


Sjoukje Oostindie

February 8, 2017 at 8:42 am

We created a new event with a title using the standard single datetime and ticket when you create a new event and no other information. As you can see, the calendar acquires dates from, and I’m guessing here, all or some of the other events. To illustrate the problem please check this event and especially the calendar:

https://adutchexperience.com/events/musical-walking-tour-through-the-hague/

Where are these dates coming from? This has also caused extraneous dates to appear in other events. I appreciate any help here since we actually went live today and only discovered this problem this morning. Now the calendar is showing available dates that are not in the event itself.

Wordpress and all plugins up to date.

Cheers


Tony

  • Support Staff

February 8, 2017 at 8:59 am

Hi there,

Has the calendar been customized at all?

That event doesn’t load any details so I’m not sure what we should be looking for, the calendar has multiple dates shown but no links to confirm what those dates are for, most likely all events (which would be expected)


Sjoukje Oostindie

February 8, 2017 at 9:13 am

No calendar customisations. The event has a single datetime and ticket (the ones that are standard when creating a new event). So there should be no other details to show other than this one datetime. This is a custom template showing the calendar for the single event using the following:

echo do_shortcode('[ESPRESSO_CALENDAR event_venue_id=' . $VENUE_ID . ']');

We have other events that only show the datetimes relevant to that single event. The question is, why is this event showing other datetimes in the calendar?

Cheers


Sjoukje Oostindie

February 8, 2017 at 10:03 am

I think I see the problem now. For starters, the ’empty’ event didn’t have an attached venue so this code would not work:

echo do_shortcode(‘[ESPRESSO_CALENDAR event_venue_id=’ . $VENUE_ID . ‘]’);

$VENUE_ID = 0 in this case.

And if multiple events share a single venue then the calendars for each event would show dates that are shared which is not desirable. I think what I am looking for is a calendar based on the event ID something like this:

echo do_shortcode(‘[ESPRESSO_CALENDAR event_id=’ . $EVENT_ID . ‘]’);

I can imagine that other developers would benefit from this parameter.

To get around this we will make sure that we create separate venues for each event.

So that is one problem sorted.

Cheers


Tony

  • Support Staff

February 8, 2017 at 10:26 am

[ESPRESSO_CALENDAR event_venue_id=XX] is pulling all events assigned to a specific venue, event_venue_id is the ID of the venue itself so any events assigned to that venue will be pulled when using that shortcode.

I think what I am looking for is a calendar based on the event ID something like this

Yes, you’d need to be able to pass a specific event_id and then only display datetimes for that event. That’s not something we currently have available although I will creae a feature request ticket to see what we can do.

Viewing 4 reply threads

The support post ‘New Event takes on datetimes from other events’ 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