Home › Forums › Event Espresso Premium › Shortcode for showing a category and only events available for registration.
Posted: March 7, 2018 at 3:48 am
EE4 Everything License
March 7, 2018 at 3:48 am
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.
March 7, 2018 at 3:51 am
There’s a few different shortcodes to list events, so can you let me know which shortcode you are currently using, please?
March 7, 2018 at 3:56 am
We are using this short code for category at the moment:
March 7, 2018 at 9:17 am
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:
You can add the above to a functions plugin or into your WordPress theme’s functions.php file.
You must be logged in to reply to this support post. Sign In or Register for an Account
Updated by Josh 1 week, 6 days ago ago