• Resolved awesomemeg13

    (@meghanfinkle)


    Hi,

    Is there anyway to hide specific categories from the “Submit Event Form”?

    I don’t want users to be able to select the Featured Events as that’s just for me to decide.

    I also am wondering how to be able to “approve” user submitted events before they show up in the events list. I tested it out but it does not seem to be working. Any help would be greatly appreciated.

    Thanks!

    https://wordpress.org/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    Thread Starter awesomemeg13

    (@meghanfinkle)

    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; ?>

    Try adding

    'exclude' => 9,

    to the $args_em array.

    Thread Starter awesomemeg13

    (@meghanfinkle)

    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!!! 🙂

    Thread Starter awesomemeg13

    (@meghanfinkle)

    Resolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide Events Category from Event Submission Form’ is closed to new replies.