I’m getting terms from the espresso_event_category taxonomy and I’d like to set the order to be based on the number of upcoming events. Currently, I have this code, which orders by the total list of events:
The $where_params I shared with you actually should go with a query for events, then from there you can get the count and use that number for your taxonomy query.
The support post ‘EE4: Is there a way to use the number of upcoming events as orderby in args’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.