Events Manager
filtering not working - full/ owner/ category (5 posts)

  1. Lee Rickler
    Posted 3 years ago #

    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.


  2. agelonwl
    Posted 3 years ago #


    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

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    just pass an array to output, remove that first parameter

  4. Lee Rickler
    Posted 3 years ago #

    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.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic