Support

Home Forums Events Calendar Add-on Update Calendar to just show category

Update Calendar to just show category

Posted: September 15, 2016 at 8:08 am


jakemurphys1

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?


Lorenzo Orlando Caum

  • Support Staff

September 15, 2016 at 9:06 am

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.


Lorenzo


jakemurphys1

September 15, 2016 at 9:27 am

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.


Tony

  • Support Staff

September 16, 2016 at 3:35 am

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.

Can you link us to an example please?

Unfortunately I’m still not sure I understand what your trying to do.

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.

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.


jakemurphys1

September 16, 2016 at 7:20 am

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.


jakemurphys1

September 16, 2016 at 8:05 am

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?


Josh

  • Support Staff

September 16, 2016 at 8:55 am

The filter function would only work if your site is running EE4. So may I ask is your site running EE3 or EE4?


jakemurphys1

September 16, 2016 at 8:56 am

it’s EE4


Lorenzo Orlando Caum

  • Support Staff

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/


Lorenzo


jakemurphys1

September 22, 2016 at 9:39 am

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.

Event Espresso