Posted: 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 |
Hi there,
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?
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: 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:
To show any child events. |
|
|
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? |
Its best to use the slug, however one thing I forgot to mention above is to wrap your slugs in single quotes:
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. |
|
|
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) |
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? |
|
|
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 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 The three event categories I want to show on the calendar |
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. |
|
|
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 |
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. |
|
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.