WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] adjust [event_form] page?

[Resolved] adjust [event_form] page?

Viewing 11 replies - 1 through 11 (of 11 total)
  • angelo_nwl

    @angelo_nwl

    NetWebLogic Support

    yes, you can modify template file at wp-content/plugins/events-manager/templates/forms/event-editor.php

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    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); }  ?>
    </div>

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

    angelo_nwl

    @angelo_nwl

    NetWebLogic Support

    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.

    angelo_nwl

    @angelo_nwl

    NetWebLogic Support

    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

    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.

    Phil

    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

    add it to line 17 just above:

    $events_count = EM_Events::count...

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