Support

Home Forums Event Espresso Premium Event Calendar Short Code Filtering for Event Category

Event Calendar Short Code Filtering for Event Category

Posted: May 19, 2022 at 12:39 am

Viewing 11 reply threads


ChiroEurope

May 19, 2022 at 12:39 am

Hi, I want to display a calendar with events using this category shortcode [ESPRESSO_EVENTS category_slug=qa]. I’ve tried using [ESPRESSO_EVENTS category_slug=your_event_category_slug] as [ESPRESSO_EVENTS category_slug=qa], and also [ESPRESSO_CALENDAR
event_category_id=qa]. None display anything on the page, must be simple fix, just not sure what it is. many thanks, Craig


Tony

  • Support Staff

May 19, 2022 at 6:16 am

Hi there,

Can you double-check you are using the correct category slug? The above shortcode looks correct as long as the slug is correct.

You can find an example shortcode for each event category within Event Espresso -> Events -> Categories.

Are does the above match what is shown there for your ‘qa’ category?


ChiroEurope

May 19, 2022 at 11:28 am

Hi Tony, ok, so maybe I had to wait, when I view I can actually see this category usig the shortcode, so yes it does work, however there is a section above the calendar : Click to select a category: which lists all the other categories I do not want to show. Can this be deactivated?


Tony

  • Support Staff

May 19, 2022 at 11:31 am

Can you link me to the page so I can view this please?

The ‘waiting’ sounds like caching, that’s not from Event Espresso.

The select a category is not something you would see with the above shortcode, so I need to take a look at the page.


ChiroEurope

May 19, 2022 at 11:03 pm

Hi Tony, https://www.chiroeurope.com/kickass-membership/
Yes so the shortcode shows events, but allows for all of them, not just the qa one.


ChiroEurope

May 19, 2022 at 11:49 pm

I’ve now added threee versions of the shoretcode to the page to visualize what is happening.
Top left is [ESPRESSO_CALENDAR event_category_id=qa]
Bottom left is [ESPRESSO_CALENDAR]
Right is [ESPRESSO_EVENTS category_slug=qa]

My impression is that the top left one is the most correct, the question is why the other events can be chose.


Tony

  • Support Staff

May 20, 2022 at 12:05 am

Oh, ok so you are using the ESPRESSO_CALENDAR shortcode.

You can’t disable the category legend on a per shortcode basis but you can disable it within the calendar settings which are in Event Espresso -> Calendar.

Set ‘Enable Category Legend’ to No and save the settings.


ChiroEurope

May 20, 2022 at 6:51 am

Great, that fixed it!! Thanks. 🙂


ChiroEurope

May 20, 2022 at 7:23 am

Is it possible to show multiple but not all events? How does the short code work if the answer is yes? Eg it is currently [ESPRESSO_CALENDAR event_category_id=qa] what if the other slug is xyz ?


Tony

  • Support Staff

May 20, 2022 at 7:50 am

You can separate multiple category slugs using a comma, so:

[ESPRESSO_CALENDAR event_category_id=qa,xyz]


ChiroEurope

May 20, 2022 at 8:45 am

Awesome, thanks for your help !!


Tony

  • Support Staff

May 20, 2022 at 8:46 am

You’re most welcome 🙂

Viewing 11 reply threads

The support post ‘Event Calendar Short Code Filtering for Event 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