Support

Home Forums Event Espresso Premium How do we stop an event from showing in the events list when it has started?

How do we stop an event from showing in the events list when it has started?

Posted: June 2, 2021 at 5:41 am


point6

June 2, 2021 at 5:41 am

How do we stop an event from showing in the events list when it has started?

We have this events page which is a customised page from our own theme:
https://www.mariamontessori.org/events/

We want to change this so that events are no longer shown once one (or any) of the datetime have started. Currently the client is marking the event as Sold Out but this prevents easy reporting and filtering on the WP back-end.

We can Mark an event as Sold Out once it starts (regardless the fact that is sold out or not): this does remove the even from the event page but makes it impossible to sort the events in reports as only some fields are available in the drop down menu (see screenshot below)

They also commented:

Just to clarify, if we, as you suggested, add all the course sessions to the course page, the course will show as UPCOMING until it is finished, so it will never show as ACTIVE in EE. Is that correct? Is that how it is supposed to work? how can we discriminate between real upcoming events and “active/current” events that are only marked as upcoming?

Any help would be much appreciated.

Thanks,


Tony

  • Support Staff

June 2, 2021 at 6:51 am

Hi there,

How do we stop an event from showing in the events list when it has started?

To remove those you’ll need to add a snippet to the site, this should do it:

https://gist.github.com/joshfeck/646d496e72942b5251d484d522d762ee

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Just to clarify, if we, as you suggested, add all the course sessions to the course page, the course will show as UPCOMING until it is finished, so it will never show as ACTIVE in EE. Is that correct? Is that how it is supposed to work? how can we discriminate between real upcoming events and “active/current” events that are only marked as upcoming?

Apologies but I’m not sure I follow, can you add some additional details on this?

An event with a DateTime that is happened now() will show as Active, if it then has a DateTime set on a later date then once the current DateTime has expired it should once again show upcoming.


point6

June 9, 2021 at 9:41 am

Hi

Thank you for the reply and sorry for the delay coming back to you – I was away on holiday last week.

To remove those you’ll need to add a snippet to the site, this should do it:

I have added this and asked the client to check.

Apologies but I’m not sure I follow, can you add some additional details on this?

I think this can be ignored if the above gist works. I will report back.

Thanks,


point6

June 11, 2021 at 8:48 am

Hi

I have another question from our client using EE.

We run a one ticket event training course that runs over several days/sessions. In the event we are adding all of these sessions as datetimes. The feedback from out client is the following:

If we, as you suggested, add all the course sessions to the course page, the course will show as UPCOMING until it is finished, so it will never show as ACTIVE in EE, and always be present in the Events page.

I’m not sure if the gist you sent will help us on this? Any advice would be appreciated.

Thanks,


Tony

  • Support Staff

June 11, 2021 at 11:30 am

Can you post an example event so I can view this?

When the current date/time is between the event datetime’s start/end date and time, the event should show as active, when that datetime passes, if there is another datetime in the future the event should again show as upcoming.

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso