Support » Plugin: Events Manager » adjust [event_form] page?

Viewing 11 replies - 1 through 11 (of 11 total)
  • yes, you can modify template file at wp-content/plugins/events-manager/templates/forms/event-editor.php

    to use templates:

    that works, thanks but i’m not good at this stuff. I can find the lines about the categories:

    <div class="event-extra-details">
    <?php if(get_option('dbem_attributes_enabled')) { em_locate_template('forms/event/attributes-public.php',true); }  ?>
    <?php if(get_option('dbem_categories_enabled')) { em_locate_template('forms/event/categories-public.php',true); }  ?>

    How do i cange this so only certain (or just 1) categories are visible for selection?

    you need to modify forms/event/categories-public.php e.g. add 'exclude'=>'2,3' where 2,3 is your event categories id

    I added exclude to the args line:

    $args_em = array( 'hide_empty' => 0, 'name' => 'event_categories[]', 'hierarchical' => true, 'exclude'=>'15,16,18', 'id' => EM_TAXONOMY_CATEGORY, 'taxonomy' => EM_TAXONOMY_CATEGORY, 'selected' => $selected, 'walker'=> $walker);

    But they still show up.

    on your snippet above; remove this 'exclude'=>'15,16,18' and then paste it here

    $categories = EM_Categories::get(array('orderby'=>'name','hide_empty'=>0, 'exclude'=>'15,16,18'));

    Thanks, one last question, where can i set to exclude a categorie from the ‘eventlist’ page?

    Plugin Author Marcus


    NetWebLogic Support

    On which line do copy the $args[‘category’] = 15,16,18;?

    I tried several options but give an parse error

    As per Angelo’s suggestion above, you’ll need to change that code slightly and add it into the EM_Categories::get() call.


    Thank you, but my last question was about where to put the code ($args[‘category’] = 15,16,18;) in the event-list.php in order to display only events from these categories in the event-list page.

    Plugin Author Marcus


    NetWebLogic Support

    add it to line 17 just above:

    $events_count = EM_Events::count...

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘adjust [event_form] page?’ is closed to new replies.