Support » Plugin: Events Manager » About public event form and categories select

  • Resolved Christian



    I’m playing around with dedicated public event forms. Really easy !!!
    So for this I customise the templates in my theme.

    Just a trick for others that can help a lot :
    As I want to have specific forms, I use this trick to deploy differents templates.

    For example, I create in <mytheme> and plugins subdir, the following file:

    It contains (pseudo code):

    if (mycriteria === ‘criteria1’) {
    } else {

    And in my thep directory I created (from original event-editor.php) 2 files called mycriteria-event-editor.php and othercriteria-event-editor.php. Like this I can use many event templates forms.

    Here’s for the trick but my problem concerns category selectboxes. I want, for one of my templates, list only all sub categories of a specific category. How can I do this in my temptates ?

    Thanks for your help!


Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    try template file at wp-content/plugins/events-manager/templates/forms/event/categories-public.php

    to use templates:

    also, you can see some sample snippet here –

    Thanks agelonwl,

    I’ve just to add the required term for my parent category here:

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

    Right and it should do the trick ?

    Plugin Author Marcus


    NetWebLogic Support

    you probably want to look at templates/forms/event/public-categories.php and edit that instead, youd tweak the $args_em line

    Done !!! Thanks

    My needs was to list all sub categories of en event cat.

    In my specific template, I change only the EM_Categories call with

    $categories = EM_Categories::get(array('orderby'=>'name','hide_empty'=>0,'child_of'=>get_term_by('slug', MY_SLUG, EM_TAXONOMY_CATEGORY)->term_id));`

    And all is working as expected.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘About public event form and categories select’ is closed to new replies.