• Resolved oueryemchi

    (@oueryemchi)


    Hi there,

    I am struggling to convert the “dropdown event category search” to a tickbox search! I would like that the user can select multipe categories instead on one category? any help will be MUCH appreciated.

    PS. I changed this in category.php

    wp_dropdown_categories(array( 'hide_empty' => 0, 'orderby' =>'name', 'name' => 'category', 'hierarchical' => true, 'taxonomy' => EM_TAXONOMY_CATEGORY, 'selected' => $args['category'], 'show_option_none' => $args['categories_label'], 'class'=>'em-events-search-category'));

    to this:

    $Myargs = array(
    	'selected_cats' => $args['category'],
    	'taxonomy' => EM_TAXONOMY_CATEGORY
    		 );
    wp_terms_checklist( 0, $Myargs);

    the tickboxes show up but clicking “Submit” does not take the selection into account.

    thanks in advance,
    Abdel

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change search from Dropdown to tickboxes?’ is closed to new replies.