The Events Calendar Plugin: Hierarchical List of Upcoming Event Categories


I’m displaying a hierarchical list of categories from the Events Calendar plugin on this site (click “browse by category” to see it in action):

http://harriscenter.staging.wpengine.com/events

This is the code I’m using:

‘tribe_events_cat’,
‘title_li’ => ”,
‘orderby’ => ‘name’,
‘order’ => ‘ASC’
);
wp_list_categories( $args );
?>

The problem is that this shows all event categories, including from events that have passed. I need to show categories from upcoming events only.

Here’s some more info and some ideas on solutions:

https://theeventscalendar.com/support/forums/topic/dont-show-category-in-list-if-event-has-passed

Looking forward to hearing from somebody who can get this working! 🙂

Thanks in advance.



source_link
وردپرس