Hi,
To hide a specific category you’d need to modify the submission template at /events-manager/templates/forms/event/categories-public.php to exclude that category from display.
To have submissions posted as drafts, you need to modify the User Capabilities settings. This should help:
forms/event/categories-public.ph
Okay great! I got the user capabilities working correctly, thank you!
For the “hide category” in that php file … the category is ID 9 so how would I code that to hide it?
This is what it says:
<?php if( count($categories) > 0 ): ?>
<div class=”event-categories”>
<!– START Categories –>
<label for=”event_categories[]”><?php _e ( ‘Category:’, ‘dbem’ ); ?></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 –>
</div>
<?php endif; ?>
It did not work adding it to that array but it did work adding it to the array above it:
$categories = EM_Categories::get(array(‘orderby’=>’name’, ‘exclude’ => 9, ‘hide_empty’=>0));
So thank you so much!!! 🙂