Support

Home Forums Event Espresso Premium Exclude Individual Events from Appearing in Category List (EE3)

Exclude Individual Events from Appearing in Category List (EE3)

Posted: September 24, 2021 at 1:24 pm


FASeminars

September 24, 2021 at 1:24 pm

Hi Support Forum,

We want to have events setup in EE3, however not appear front-end to users irrelevant that they are assigned to a specific event category.

I don’t see any documentation as to how to add an exclude to the event-category shortcode.

Thanks for any help,

Andreo


Tony

  • Support Staff

September 27, 2021 at 3:58 am

Hi Andreo,

Can you link me to a page I can view this on?

Or maybe include a screenshot of what you are looking to remove?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


FASeminars

September 28, 2021 at 12:17 pm

Hi Tony,

Page Link:
https://functionalanatomyseminars.com/seminars/find-a-seminar/

We’re pulling in event-category shortcodes in the different sections to show all active events. We want to hide an individual event from appearing in the list (exclude) – screenshot: https://www.screencast.com/t/fC6RcsMXNQBQ.

Does this help? Thank you for responding.

Andreo


Tony

  • Support Staff

September 29, 2021 at 3:45 am

Yes, that helps thank you.

So is it just for that specific listing or everywhere? Meaning you only want to link directly to that event and no have it in any of the EE event list?

One option you have without modifying any code is to set the event status to waitlist: https://monosnap.com/file/bpNkHZCLXsT4ln5evD7LkBxaNlYPHb

Waitlist events don’t show in the event lists by default.

Note they will also not show in the admin on the default Event list in Event Espresso -> Event overview. You’ll need to select the ‘waitlist’ status in the status filter and click filter: https://monosnap.com/file/9LHA7CX72Sdqy2IveUmSJCKhNST1LO

Does that work for you?


FASeminars

September 30, 2021 at 7:39 pm

Hi Tony,

That method won’t work for us because upon event registration, different event categories open up Members Area access. So I need the ability to exclude the live event from appearing event lists but still drive users to event registration page via direct link so they can register and get access.

Hope this makes sense. Thanks for supporting us.

Andreo


Tony

  • Support Staff

October 1, 2021 at 5:10 am

I guess I’m misunderstand the issue in your last post as what you are describing is how ‘waitlist’ events work in EE3.

They don’t show up in the event lists but if you navigate directly to the event on the front end (or post a direct link to it) you can register as normal.

Is that not what you are looking for?


FASeminars

October 1, 2021 at 12:26 pm

Hi Tony,

Your first solution makes perfect sense plus how waitlist concept works. The reason we can’t use that is that we need the “event” setup to be a “live” event that can be registered for and paid … because on registration that unlocks members access to other areas on our site that talk to EE3.

So, I need a live event that is active in EE3, but doesn’t automatically appear in event lists. How can we exclude a single event? Is there some sort of function we can specify (eg. if event ID = 123 than hide from event list for event category X)?

Thanks,

Andreo


FASeminars

October 1, 2021 at 12:27 pm

We don’t allow “waitlist” events setup to have access to members areas on registration***


Tony

  • Support Staff

October 5, 2021 at 7:08 am

The reason we can’t use that is that we need the “event” setup to be a “live” event that can be registered for and paid …

With EE3, ‘Waitlist’ events are ‘live’ and can be registered and paid for just like a ‘normal’ event.

So, I need a live event that is active in EE3, but doesn’t automatically appear in event lists. How can we exclude a single event?

You can’t, not without working through the functions and either creating your own queries in place of the default code or filtering the results and removing the event before output.

Is there some sort of function we can specify (eg. if event ID = 123 than hide from event list for event category X)?

I’d checked this earlier and unfortunately not.

We don’t allow “waitlist” events setup to have access to members areas on registration***

Ok, so the issue is your custom code doesn’t allow you to use waitlist events to integrate with whatever else you are using throughout the site?

Could you not use a custom meta field on the event itself?

Meaning if your code is checking to see if the current event has a status of waitlist and that turns out to be true, check if the event has a meta field of ‘allow-member-registration’ for example and if so continue on through your ‘normal’ process.

That is likely going to be simplest/quickest solution for what you are trying to do. Use the EE waitlist status to hide the event from event list, it allows you to register and pay without any additional custom code through EE’s event lists and a simple event meta check is added to the custom function.

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

Event Espresso