Support

Home Forums Event Espresso Premium Event Table Add-on showing specific category only

Event Table Add-on showing specific category only

Posted: November 25, 2015 at 10:57 am


Josh

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


Lorenzo Orlando Caum

  • Support Staff

November 25, 2015 at 11:14 am

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”]


Lorenzo


Josh

November 25, 2015 at 11:22 am

Thank you for the quick turnaround. Unfortunately, it does not seem to be working. See below.
Categories screenshot
page shows code (or nothing at all)

Any ideas?

Thank you


Lorenzo Orlando Caum

  • Support Staff

November 25, 2015 at 12:56 pm

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.


Lorenzo


Josh

November 25, 2015 at 5:03 pm

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


Josh

  • Support Staff

November 25, 2015 at 5:31 pm

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.


Josh

November 25, 2015 at 5:42 pm

It is built into the Avada Theme. I will send you the .zip if you want (for evaluation/support purposes).


Josh

  • Support Staff

November 25, 2015 at 6:50 pm

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.


Josh

November 26, 2015 at 7:20 am

1) I have now put the shortcode in a regular page and it is not working there either
2) Yes, it is activated. It works without a category slug.


Josh

November 26, 2015 at 7:21 am

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.


Josh

November 26, 2015 at 7:25 am

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.


Tony

  • Support Staff

November 26, 2015 at 8:16 am

You can do that with the category_filter parameter, add category_filter=”false” to your shortcode, like this:

[ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug="your-event-category-slug" category_filter="false"]

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.

Event Espresso