Support

Home Forums Event Espresso Premium Hiding duplicate events on calendar

Hiding duplicate events on calendar

Posted: September 2, 2017 at 8:23 pm

Viewing 9 reply threads


Maayan

September 2, 2017 at 8:23 pm

I have two different payment options on my website for classes – one a regular tuition and the other a “sliding scale” payment option for those needing financial assistance. I created a duplicate event and added the different payment options on the second. I would like to hide the classes in “sliding scale” category from the calendar. I have 3+ categories I need to show at any one point so I can’t just do the “ESPRESSO_CALENDAR event_category_id=your_category_id show_expired=true] (unless I’m missing something). I can think of different ways to achieve what I want, but I can’t figure out how and if I can do them. 1) create “private” pages and just have a link to the sliding scale event where I want it – but making the page “private” makes it inactive. 2) \hiding the “sliding scale” category. Are there some other ways I can achieve what I want?thanks


Tony

  • Support Staff

September 4, 2017 at 8:38 am

Hi there,

1) create “private” pages and just have a link to the sliding scale event where I want it – but making the page “private” makes it inactive.

It shows as inactive in EE because it’s private, it’s still available but only to logged in users (it works exactly the same way as standard private ‘posts’) so I don’t think that will work anyway as I’m assuming your users don’t sing into the site to register onto the events?

I have 3+ categories I need to show at any one point so I can’t just do the “ESPRESSO_CALENDAR event_category_id=your_category_id show_expired=true] (unless I’m missing something).

Would it work if you could assign the 3 categories to show on the calendar? So then you’d just exclude the ‘private’ events from those categories?

If you can use: [ESPRESSO_CALENDAR event_category_id=category-1,category-2,category-3 show_expired=true]

Or you can also use a parent category, say ‘public’ and assign the categories you want to display on the calendar to that parent category, then you can just use:

[ESPRESSO_CALENDAR event_category_id=parent-category-slug show_expired=true]

To show any child events.


Maayan

September 4, 2017 at 7:53 pm

you are correct our people do not register with a sign in.

Do I write the name of the category ID or the number? I tried both your suggestions both ways and it still is showing the category I don’t want to show (or it shows nothing) Any other suggestions?


Tony

  • Support Staff

September 5, 2017 at 2:31 am

Do I write the name of the category ID or the number?

Its best to use the slug, however one thing I forgot to mention above is to wrap your slugs in single quotes:

[ESPRESSO_CALENDAR event_category_id='first-category,second-category']

You can find the slugs for your categories in:

Event Espresso -> Events -> Categories (tab)

Each category will show you a shortcode with a category_slug parameter set, that’s the slug for that category.


Maayan

September 5, 2017 at 10:00 am

It is still not working. I have tried many different configurations and either none of the events show up or all the events (including the events for catagory I want to be hidden)


Tony

  • Support Staff

September 5, 2017 at 11:01 am

The feature was added in version 3.2.11 of the calendar, are you using that version?

Can you post the current shortcode you are using and the slugs for the categories you want to include here, please?


Maayan

September 5, 2017 at 11:49 am

we are running 4.9.45.p

[ESPRESSO_CALENDAR event_category_id=’2017-fall,2017-18-year’] is what I have right now and the calendar is blank

If i change it to [ESPRESSO_CALENDAR event_category_slug=’2017-fall,2017-18-year’] then everything shows up

Parent for 16, 14 & 9
21 Ma’ayan Programming [ESPRESSO_EVENTS category_slug=maayan-programming] 0

I want to Hide this one (I put this as a child in an old folder to see if that would work – and it didn’t
20 Sliding Scale [ESPRESSO_EVENTS category_slug=sliding-scale] 0

The three event categories I want to show on the calendar
16 Events [ESPRESSO_EVENTS category_slug=events] 0
14 2017-18 Year long Courses [ESPRESSO_EVENTS category_slug=2017-18-year] 3
9 2017 Fall [ESPRESSO_EVENTS category_slug=2017-fall] 7


Josh

  • Support Staff

September 5, 2017 at 11:57 am

Hi there,

I checked and your site has version 3.2.10.p of the calendar. You will need to update to version 3.2.11.p of the calendar before you can use the features that Tony mentioned earlier.


Maayan

September 5, 2017 at 12:51 pm

Thanks, I upgraded and after a bit more playing around with it. It now works with [ESPRESSO_CALENDAR event_category_id=’16,14,9′ show_expired=true]

Thanks for your help. The unwanted category still shows on the menu (it would be nice if it didn’t, but I was able to hide it with assigning the background and text to be the same color as the page background


Tony

  • Support Staff

September 5, 2017 at 2:35 pm

Which menu? (We have a couple)

If you mean the dropdown filter you can use:

#ee-category-submit option[value='{category-slug}'] {
    display: none;
}

For the catgory legend links you can use:

#ee-category-legend-ul .ee-category-li-{category-id} { {
    display: none;
}

You’ll need to change the placeholders in the above to match the slug and ID of the category you want to remove but that will remove it from view.

Viewing 9 reply threads

The support post ‘Hiding duplicate events on calendar’ 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