Support

Home Forums Event Espresso Premium Shortcode for showing a category and only events available for registration.

Shortcode for showing a category and only events available for registration.

Posted: March 7, 2018 at 3:48 am

Viewing 3 reply threads


Flycast Partners

March 7, 2018 at 3:48 am

Hi there,
we are showing events by a category, however, want to exclude events for which ticket booking date is expired, how to do that? Could not find a short code for that. Thanks.


Tony

  • Support Staff

March 7, 2018 at 3:51 am

Hi there,

There’s a few different shortcodes to list events, so can you let me know which shortcode you are currently using, please?


Flycast Partners

March 7, 2018 at 3:56 am

We are using this short code for category at the moment:
[ESPRESSO_EVENTS category_slug=remote-training]


Josh

  • Support Staff

March 7, 2018 at 9:17 am

Hi there,

While the shortcodes do not have parameters to filter out events with no available tickets, it’s possible to use WordPress filter hooks to change this. You can add this code snippet to your site to accomplish this:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Viewing 3 reply threads

The support post ‘Shortcode for showing a category and only events available for registration.’ 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