Posted: 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 |
|
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 |
|
September 28, 2021 at 12:17 pm Hi Tony, Page Link: 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 |
|
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? |
|
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 |
|
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? |
|
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 |
|
We don’t allow “waitlist” events setup to have access to members areas on registration*** |
|
With EE3, ‘Waitlist’ events are ‘live’ and can be registered and paid for just like a ‘normal’ 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.
I’d checked this earlier and unfortunately not.
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. |
|
Hi Tony, Thank you. Can you share screenshot of the “simple event meta check” on where we can add that field? I assume that field once added then needs to be added to our custom functions logic to check and “if paid, then grant access”? Thanks, Andreo |
|
Within EE3 there is an Event Meta section: https://monosnap.com/file/Fd74VBEaSizo4LB9ASmbOU1qUVWfdD So you add a custom field to that section and then check it on the event within your custom logic. You mentioned you don’t allow ‘waitlist’ events to work with your custom code, I have no idea which path you’ve chosen to take when doing that but assume your developer(s) will know. For example, if you only pull in events with a specific status, then now include the waitlist status in that query. If you have various waitlist events but only want specific ones to work with the above you use the meta value on the event to confirm if it should work with your custom code. If you have the event_id you can do something like:
Correct, although I have no idea what your code is doing here, your developer should be able to implement this. |
|
The support post ‘Exclude Individual Events from Appearing in Category List (EE3)’ 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.