Posted: November 25, 2015 at 10:57 am
|
How can I have the event table display mode only show a specific category? I was able to list events with their default display mode while adding some language to the shortcode to only show those events from a specific category. When I tried adding that same language to the event table display mode, it did not work. Thank you |
Hi Josh, there is a parameter for that: [ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=”your-event-category-slug”] Change your-event-category-slug to your the name of your actual event slug. For example, if your event slug was fall-events, then this would be the updated shortcode: [ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=”your-event-category-slug”] — |
|
|
Thank you for the quick turnaround. Unfortunately, it does not seem to be working. See below. Any ideas? Thank you |
Hi Josh, Could you update your site to the current version of Event Espresso 4? https://eventespresso.com/wiki/ee4-changelog/ I’ve just tested the both shortcodes on the latest version of Event Espresso 4 and it does work as expected. — |
|
|
I updated the version and it still does not work. Is the shortcode made to work on any page or post? I am trying to use it in the text of a portfolio plugin page that allows other shortcodes to work. Josh |
Hi Josh, The shortcode should work on any WP page or WP post. I’m not sure if it will work in a portfolio plugin page though. What’s the name of the portfolio plugin you’re using? We might need to investigate further since we’ve only tested the shortcode on regular WP posts and pages. |
|
|
It is built into the Avada Theme. I will send you the .zip if you want (for evaluation/support purposes). |
No thanks. We do not support the Avada theme, and I have a copy anyways. So if I include the shortcode in an Avada portfolio item’s content, the shortcode parses as expected. So apparently you’re adding the shortcode to a shortcode field? I’m not sure that will work. Does just the regular shortcode (no parameters) work there? Are you sure you have the Event Espresso – Events Table View Template plugin activated? You can even try the shortcode on a regular page or post to see if that makes a difference as well. |
|
|
1) I have now put the shortcode in a regular page and it is not working there either |
|
That’s strange. I just repasted the code (it is the same as before) and when I hit update, now it works on both the portfolio pages and the regular pages…. Not sure what’s going on, but it does work. Thank you. |
|
I did just notice though, that even though I am using the category filter in the shortcode, the category drop down on the front end still shows but is not functional, as in a person cannot change the displayed category via the dropbox even if they select a different category from the drop down. How do we hide that so it doesn’t make people confused. |
You can do that with the category_filter parameter, add category_filter=”false” to your shortcode, like this:
That will remove the category filter from view. You’ll find a full list of available parameters for that shortcode on this page: https://eventespresso.com/wiki/events-table-view-template-add-on/ |
|
The support post ‘Event Table Add-on showing specific category only’ 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.