Posted: February 7, 2018 at 1:06 am
Hi, we are trying to achieve two calendars 1. all events and 2. only the active events. We used this snippet to exclude the canceled from the calendar. Can I bring the canceled events back for the show_expired=true shortcode? Maybe there is an more elegant way for this. |
|
Hi motio, You should be able to alter the code a bit to check for the current page (with the WP is_page() function) then only run that filter on the calendar page that has only the active events. |
|
Hi Josh, |
|
Can you provide a bit more details about what you’re working on then? If we know the page slug of the page that displays active events, we can show you how to alter the code. |
|
Hi Josh, we provide a booking site for courses (pilates, yoga, etc.) for our customer. The pages /termine/ and /termine-kalenderansicht/ should show all events (active, upcoming, postponed, canceled). The first page uses the table template and the second the calendar shortcode. On the Page /aktuelle-kurse/ we want to show only the active events (exclude the canceled) with the calendar shortcode. We really appreciate your efforts. |
|
Hi Motio, You’ll still need to alter the code to accomplish this, and here’s another example:
Then, in addition to making the above change, you’ll need to change the shortocode on the page /aktuelle-kurse/ to include the |
|
Thank you a lot Josh, that works great. If I could bother you with a second topic. I’ve noticed that that the agendaWeek view is showing the US time format. The time format in the system settings and the calendar add-on settings are set to G:i. On the top left corner it says “all-day”, which I also couldn’t change through the po and mo file. |
|
The solution for agendaWeek is to use basicWeek instead. You can change this by going to Event Espresso > Calendar, then find the Header Style > Right field and change |
|
So there is no easy solution for that. Unfortunately the basicWeek has no time indication and the events are vertically right next to each other. |
|
You can add a time indication to the basicWeek view by going to Event Espresso > Calendar then you set Show Event Time in Calendar to Yes, then click Save. |
|
The support post ‘Add-on Calendar: Show canceled events on show_expired=true’ 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.