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?
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?
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.
add it to line 17 just above:
$events_count = EM_Events::count...