• Resolved lmcookie62

    (@lmcookie62)


    Hi, on my event list page in the category search drop down list I would like to only display the categories of future events rather than all the categories I have set up from past events.

    Should this be standard behavior for this drop down? Whats the logic behind what gets displayed in this drop down? i’m trying to work out why I have all the categories displaying currently – even those with no future events set up.

    thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @lmcookie62,

    You need to change bit code in the event-filters.php file. Fid the category drodown section and replace with this code

    event_manager_dropdown_selection( array( 'value'=>'slug', 'taxonomy' => 'event_listing_category', 'hierarchical' => 1, 'name' => 'search_categories', 'orderby' => 'name', 'selected' => $selected_category, 'hide_empty' => true) );

    You just need to make 'hide_empty' => true instead of false

    In your admin panel go to Event listing -> Settings -> Event submission-> Enable Hide expired listing it will only show upcoming events.

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘What logic is used to determine which event category are displayed?’ is closed to new replies.