Support » Plugins and Hacks » Events Manager » [Plugin: Events Manager] filtering not working – full/ owner/ category

[Plugin: Events Manager] filtering not working – full/ owner/ category

  • I might simply be getting confused here but filtering is simply not working.

    What I want to do is display a normal calendar BUT also, if you are loggedin and are the owner of an event in a specific category, also display that.

    So … for example:
    I need to display, in a full calendar, all events except category 5 unless you are the owner of an event which is in category 5

    I have tried various combinations of:
    <?php echo EM_Events::output($cell_data['events'],array('format'=>get_option('dbem_full_calendar_event_format'), 'category'=>5)); ?>

    <?php echo do_shortcode('[events_list full="1" category="5" owner="' . $current_user->ID . '"]'); ?>

    <?php if (class_exists('EM_Calendar')) {
    	echo EM_Calendar::output($cell_data['events'],array('format'=>get_option('dbem_full_calendar_event_format'), 'category'=>5)); } ?>


    But I’m simply getting either a full calendar with all events or nothing.

    This is on the calendar-full.php file.

    Any help will be appreciated.


Viewing 4 replies - 1 through 4 (of 4 total)
  • agelonwl



    if you want to display events by category with exception then you might want to do this e.g. [events_calendar category="1,3"] the example will show all events except category id 2

    Plugin Author Marcus


    just pass an array to output, remove that first parameter

    Hi Marcus – just remove this?

    Then that doesn’t display the calendar correctly.

    But – that aside – this doesn’t answer the question of displaying specific categories (that I can do not a problem) but then also events in another specific category but owned by a specific member.

    For example:
    Category 1 can be seen by anyone, category 2 are only my events.
    – Display all events (in the same calendar) in category 1 as well as any event in category 2 that are owned by me.

    Plugin Author Marcus


    I mean remove this : $cell_data[‘events’]

    You’d have to go into the em templates and add some code to exclude/include categories that way, or also just use ‘owner’ as a search attribute.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Events Manager] filtering not working – full/ owner/ category’ is closed to new replies.
Skip to toolbar