Posted: October 31, 2022 at 10:17 pm
I run events using 12 CATAGORIES. In my Calendar, I display only 10 of the 12 categories. I keep two categories hidden to conduct Customer Service oriented tasks. In a recent upgrade, something broke in the Calendar Shortcode because the Calendar display is ignoring my shortcode switches and displaying ALL categories. This is the shortcode on the calendar display page:
Notice that 10 categories are listed. I hide categories 28 and 11. Instead, all 12 are displayed. What changed? Did an upgrade introduce a bug, and the shortcode is failing? This has worked for years… My Calendar is on this site: https://PatrollerSchool.org |
|
Hi there, Where do you see events for Category 28 or 11 listed on the calendar, please? I may be completely missing them but as far as I can tell they aren’t being pulled into the calendar. |
|
I’m sorry; I meant to say I hide only #11, which is color-coded RED. These are my category tab items: 34 MTR 10 Orange There should be no RED-colored events listed, but in November, two events are displayed. Both are categorized with only #11 (OET). My goal is to make all OET #11 events hidden from the Calendar display. It appears that the shortcode is not reading my comma-separated category values and just displaying all categories…? |
|
Ok, so when you assign categories through the shortcode as you are it passes those IDs to be used on the calendar and will only display events for those categories. That’s happening on your site correctly for me, I don’t see any OET events in November when the calendar loads directly However, as you have the calendar filters enabled, they display all of the categories and allow you to select specific categories to display or even ‘all’ which will override the categories set on the shortcode. So if you load the calendar on the page and don’t specify a category, it uses the categories set in the shortcode and will only display those events (that’s working for me) if you then select all categories in the dropdown, the shortcode is overridden and your new selection applied, that’s ‘working’ for me but also means events you don’t want to display are then shown. As far as I am aware that has always been the case. Without some custom code you could disable the category filters displayed there so the calednar will only display the events from the cateogires set in the shortcode, does that work for you? Event Espresso -> Calendar -> Enable Filters in Calendar Set that to No and save. |
|
Thank you for the explanation. Perhaps I never noticed in the Catagory selector pulldown, that #11 known as OET or even the choice ALL was available. It did cause me to question what I had built over the years. I’m happy IRS working properly. Can you suggest a CODE SNIPPET that would suppress that #11 category from displaying? I do run the Code Snippets plug-in to ensure that updates don’t overwrite customizations. In the case of this website, I do not display any other calendar pages, so the suppression could be inforces sitewide. Thank you again for checking into this! |
|
The calendar needed an additional filter for this, so I’ve just push an update with one live (version 3.2.16.p) If you don’t see the update on your site just yet, go to Event Espresso -> General Settings and just hit save to force you site to check for updates. The update should then show in Dashboard -> Plugins for the calendar. Update and then use this snippet on the site: https://gist.github.com/Pebblo/d65be156ca1cc812e5eb022ccf0d0adf What that does is use the categories set on the shortcode to filter the category legend/dropdown/filters on the calendar. |
|
The support post ‘Calendar Shortcode is failing’ 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.