Posted: September 15, 2016 at 8:08 am
|
I have a Event Espresso Calendar that shows events by a category, and when you click it, it shows all the events which you can register for. Is there a way to, on the calendar, to just show the category instead of all the events. I found how to just show the first one, but I would rather just show the category. Also, is there a way for the calendar to only show events that haven’t been filled. I know how to hide the “expired” ones, but I think that’s just for dates. Is there a way to make something “expired” not by date, but by having the event filled up? |
Hello, You can specify the category id for the events category so that is shown by default: [ESPRESSO_CALENDAR event_category_id=your_category_id] For example: [ESPRESSO_CALENDAR event_category_id=my-fall-events] The expired check currently checks against the date time for an event rather than the availability of open spots. — |
|
|
Sorry, perhaps I didn’t state the problem correctly. I already use the category_id, and it shows all of the events listed under that category. I want JUST the category name instead of all the events within the category. The user will see all the individual events within the category when they click it. So, my website says “Campus tour: First Tour,Campus tour: Second Tour,Campus tour: Third Tour,” on each date. The “First tour” is a name of the tour, and useful for after they click it, but on the actual calendar, I just want “Campus Tour” one time for each date for the dates that have tours available. Also, are you saying that there is no way in EE to hide events that have been filled? It doesn’t have to be labeled as “expired”, I just don’t want them to show up on the calendar. |
Can you link us to an example please? Unfortunately I’m still not sure I understand what your trying to do.
No, not by default. However we have a filter within the Claendar that allows you to set sold outs not to display by adding this function: https://gist.github.com/lorenzocaum/73efdcd1993e767728c7 Add that to your themes functions.php file or a Site Specific Plugin to remove sold out events from the calendar. |
|
|
Thank you for your help. I’ll try the filter for that second issue. As for the first issue, I don’t want it to display the events, I just want it to display something to show that there are events available. Each date could have “campus tour open” or “available now”, I just don’t want to have all the events on each date. It would look cumbersome. |
|
Also, for the filter, I added it to my theme’s functions.php and the filled events still show up. Is there another step, or does this only work for new events added. Is there a way to make it work was existing events? |
The filter function would only work if your site is running EE4. So may I ask is your site running EE3 or EE4? |
|
|
it’s EE4 |
September 16, 2016 at 12:37 pm Hello, I’ve tested the filter out on my testing site and it is working. Are you using an up to date version of the events calendar add-on along with Event Espresso 4? https://eventespresso.com/wiki/ee4-changelog/ — |
|
|
Ok, I got it working. Thank you for your help. |
The support post ‘Update Calendar to just show category’ 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.