Support » Plugin: The Events Calendar » Organizer list by upcomming count

  • Resolved Pitpitt

    (@pitpitt)


    We are agregating a number of Facebook imports
    Need a simple list of organizers ( or categories )
    sorted by the number of upcoming events.

    Can we even sort organizers by number of upcomming ?

    See here example with categories : http://www.aqction.info
    but it COUNTS all events – NOT upcoming only

    $terms = get_terms("tribe_events_cat", 'orderby=count&order=DESC');
     $count = count($terms);
    if ( $count > 0 ){ ... ...  ...

    https://wordpress.org/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
  • Hey,

    Unfortunately we aren’t able to give full customization support here in these forums, I would say that based on the snippet above the “$count” that you would be getting there would the number of terms rather than the events associated with those terms.

    If, from here you do a “foreach($terms as $term)” and do a new WP_Query for the events associated with each term the query should automatically just pull the upcoming events based on some filters already implemented within the plugin.

    Let me know if this helps.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Organizer list by upcomming count’ is closed to new replies.