Frontend submission form – categories as checkboxes
-
Hi,
I’d like to change a few things inside the frontend submission form. For example I wish I could change the way categories are display. How can I change the multiple selection for categories to checkboxes? It would be more simple for users. I think I have to code something inside categories-public.php instead of this:
<!-- START Categories --> <label for="event_categories[]"><?php _e ( 'Category:', 'events-manager'); ?></label> <select name="event_categories[]" multiple size="10"> <?php $selected = $EM_Event->get_categories()->get_ids(); $walker = new EM_Walker_CategoryMultiselect(); $args_em = array( 'hide_empty' => 0, 'name' => 'event_categories[]', 'hierarchical' => true, 'id' => EM_TAXONOMY_CATEGORY, 'taxonomy' => EM_TAXONOMY_CATEGORY, 'selected' => $selected, 'walker'=> $walker); echo walk_category_dropdown_tree($categories, 0, $args_em); ?></select> <!-- END Categories -->
Can anyone help me? Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Frontend submission form – categories as checkboxes’ is closed to new replies.